net-im/xib-bot/files/xib-bot.initd
changeset 220 fca4a6de7c45
parent 219 c0c5810e06b8
parent 218 f329eec39970
child 221 c5f8d9947206
--- a/net-im/xib-bot/files/xib-bot.initd	Tue Jul 25 11:35:22 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-PIDFILE=${PIDFILE:=/var/run/xib-bot.pid}
-CONF=${CONF:=/etc/xib-bot/config.xml}
-LOGFILE=${LOGFILE:=/var/log/xib-bot.log}
-STARTFILE={STARTFILE:=/usr/lib/python2.7/site-package/xib-bot/start_bots_from_xml_config.py}
-
-depend() {
-	need net
-}
-
-start() {
-	ebegin "Starting ${SVCNAME}"
-	start-stop-daemon --start --exec "$STARTFILE" \
-		-1 ${LOGFILE} -2 ${LOGFILE} \
-		-m --pidfile "${PIDFILE}" -b -- "${CONF}"
-	eend $?
-}
-
-stop() {
-	ebegin "Stopping ${SVCNAME}"
-	start-stop-daemon --stop --exec  "$STARTFILE" \
-		--pidfile "${PIDFILE}"
-}
-