err: improve initscript

This commit is contained in:
2012-06-19 13:23:01 +04:00
parent 156a297035
commit 737b446abf
2 changed files with 13 additions and 5 deletions

View File

@ -1,12 +1,20 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need net
need net
}
start() {
ebegin "Starting errd..."
start-stop-daemon --start --pidfile ${PID_FILE} --exec /usr/bin/python2 -- /usr/bin/err.py -c ${ERR_CONFIG_PATH} -d -p ${ERR_PID_FILE} -u ${ERR_USER} -g ${ERR_GROUP}
eend $?
ebegin "Starting errd"
start-stop-daemon --start --make-pidfile --pidfile ${ERR_PID_FILE} --background --quiet \
--exec /usr/bin/python2 -- /usr/bin/err.py -c ${ERR_CONFIG_PATH} -u ${ERR_USER} -g ${ERR_GROUP}
eend $?
}
stop() {
ebegin "Stopping errd"
start-stop-daemon --stop --pidfile ${ERR_PID_FILE}
eend $?
}