err: improve initscript

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

View File

@ -1,5 +1,5 @@
AUX errd.confd 88 RMD160 0cd607e1a866840c52aa7141f4a1a93c8094184c SHA1 52eea938e025272a15bce8ad39ec0f50c453fb1e SHA256 457f9627d9d6398c198c307e3422a8b3e0112e09052e435b36ca5322f93214e6
AUX errd.initd 273 RMD160 33ff5a30fe807f7fe2c6e86000cd7bdf163ca766 SHA1 58b9bf463039bb4a1070b0e164b845856e1f6cd8 SHA256 061a68a36dd7a00d034b8f37833479195a3bc89e174edefeb7995bc963f8bb2d
AUX errd.initd 484 RMD160 c5d46daa37ff12865ffc7fcfef0ea8ce522d914d SHA1 84294cbf275d3d80dabc4fb1500545ee69ae2c3f SHA256 b5ddcc63b4906cc19e5a2e6880f186443818437f2511c9837995f7298221d1ef
DIST err-1.2.1.tar.gz 24308 RMD160 77b83061ce9ffaece8aaadfa5058f473b0ddbd88 SHA1 3fc9f3f29e4843d37b6fb8191f22f4595629e8b6 SHA256 969b693935578b9fb0fcb2c42a956d139040fadbf41e6911ea756c18f19a2a03
EBUILD err-1.2.1.ebuild 1132 RMD160 3d97e25a5574110c583e15a3fa6205b75fb4d045 SHA1 dde210b4b58042f6f60bdee2edb37d04b532a60a SHA256 090afc78882c5f64148500746048a4f23c077b36c4829bcea7fb81f53746ecf4
EBUILD err-9999.ebuild 1141 RMD160 df6ae87b738679b96caffce17c117def1dd55099 SHA1 f2853914ce999817d825acb9fca9b4bc30e2a63d SHA256 1511f7ccba6492f02867918476248b1c51bdcfd516cfd41b10dcea910ba44f47

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
}
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}
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 $?
}