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:=/usr/share/xib-bot/config.xml} |
|
8 LOGFILE=${LOGFILE:=/var/log/xib-bot.log} |
|
9 |
|
10 depend() { |
|
11 need net |
|
12 } |
|
13 |
|
14 start() { |
|
15 ebegin "Starting ${SVCNAME}" |
|
16 start-stop-daemon --start --exec /usr/share/xib-bot/start_bots_from_xml_config.py \ |
|
17 -1 ${LOGFILE} -2 ${LOGFILE} \ |
|
18 -m --pidfile "${PIDFILE}" -b -- "${CONF}" |
|
19 eend $? |
|
20 } |
|
21 |
|
22 stop() { |
|
23 ebegin "Stopping ${SVCNAME}" |
|
24 start-stop-daemon --stop --exec /usr/share/xib-bot/start_bots_from_xml_config.py \ |
|
25 --pidfile "${PIDFILE}" |
|
26 } |
|
27 |