Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved initd from Sergey Popov (Pinkbyte)

  • Loading branch information...
commit ba3495e784ffb330e5ffec8aa2704a821243221f 1 parent 7787d3d
@gbin authored
Showing with 12 additions and 4 deletions.
  1. +12 −4 net-im/err/files/errd.initd
View
16 net-im/err/files/errd.initd
@@ -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 $?
+}
Please sign in to comment.
Something went wrong with that request. Please try again.