summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/nagibot/files/nagibot.init')
-rw-r--r--net-im/nagibot/files/nagibot.init35
1 files changed, 0 insertions, 35 deletions
diff --git a/net-im/nagibot/files/nagibot.init b/net-im/nagibot/files/nagibot.init
deleted file mode 100644
index 294717d..0000000
--- a/net-im/nagibot/files/nagibot.init
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-: ${CFGFILE:=/etc/nagibot/nagibot.cfg}
-
-start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0} --wait 1500"
-extra_started_commands="reload"
-
-NAGIBOT=/usr/bin/nagibot.pl
-NAGIBOT_OPTS="-c ${CFGFILE} -d ${JID}"
-
-depend() {
- config "$CFGFILE"
-}
-
-start_pre() {
- checkpath -o ${PREFIX}:${PREFIX} -m 0750 -d $(dirname ${PIDFILE})
- checkpath -o ${PREFIX}:${PREFIX} -m 0750 -p ${FIFO}
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
-
- start-stop-daemon --start --exec ${NAGIBOT} --pidfile ${PIDFILE} -- ${NAGIBOT_OPTS}
-}
-
-reload() {
- ebegin "Reloading ${SERVICE}"
- kill -HUP `cat ${PIDFILE}`
- eend $?
-}
-
-# vim: filetype=gentoo-init-d: