equal
deleted
inserted
replaced
1 #!/sbin/runscript |
|
2 # Copyright 1999-2010 Gentoo Foundation |
|
3 # Distributed under the terms of the GNU General Public License v2 |
|
4 # $Header: $ |
|
5 |
|
6 PIDFILE=${PIDFILE:=/var/run/xib-bot.pid} |
|
7 CONF=${CONF:=/etc/xib-bot/config.xml} |
|
8 LOGFILE=${LOGFILE:=/var/log/xib-bot.log} |
|
9 STARTFILE={STARTFILE:=/usr/lib/python2.7/site-package/xib-bot/start_bots_from_xml_config.py} |
|
10 |
|
11 depend() { |
|
12 need net |
|
13 } |
|
14 |
|
15 start() { |
|
16 ebegin "Starting ${SVCNAME}" |
|
17 start-stop-daemon --start --exec "$STARTFILE" \ |
|
18 -1 ${LOGFILE} -2 ${LOGFILE} \ |
|
19 -m --pidfile "${PIDFILE}" -b -- "${CONF}" |
|
20 eend $? |
|
21 } |
|
22 |
|
23 stop() { |
|
24 ebegin "Stopping ${SVCNAME}" |
|
25 start-stop-daemon --stop --exec "$STARTFILE" \ |
|
26 --pidfile "${PIDFILE}" |
|
27 } |
|
28 |
|