pinkbyte-overlay/net-im/err/files/errd.initd

21 lines
484 B
Plaintext
Raw Normal View History

#!/sbin/runscript
2012-06-19 13:23:01 +04:00
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
2012-06-19 13:23:01 +04:00
need net
}
start() {
2012-06-19 13:23:01 +04:00
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 $?
}
2012-06-19 13:23:01 +04:00
stop() {
ebegin "Stopping errd"
start-stop-daemon --stop --pidfile ${ERR_PID_FILE}
eend $?
}