err: improve initscript
This commit is contained in:
@ -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 $?
|
||||
}
|
||||
|
Reference in New Issue
Block a user