diff -r 58d5cc68f922 -r af44598ccbe3 net-im/xib-bot/files/xib-bot.initd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-im/xib-bot/files/xib-bot.initd Mon Aug 30 17:04:38 2010 +0200 @@ -0,0 +1,27 @@ +#!/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:=/usr/share/xib-bot/config.xml} +LOGFILE=${LOGFILE:=/var/log/xib-bot.log} + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/share/xib-bot/start_bots_from_xml_config.py \ + -1 ${LOGFILE} -2 ${LOGFILE} \ + -m --pidfile "${PIDFILE}" -b -- "${CONF}" + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/share/xib-bot/start_bots_from_xml_config.py \ + --pidfile "${PIDFILE}" +} +