Home | History | Annotate | Download | only in sys

Lines Matching refs:DAEMON

15 # environment variables and updated the start-stop-daemon calls
24 DAEMON=/home/webtry/skia/experimental/webtry/$NAME
30 [ -x "$DAEMON" ] || exit 0
44 # Function that starts the daemon/service
49 # 0 if daemon has been started
50 # 1 if daemon was already running
51 # 2 if daemon could not be started
52 start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON --make-pidfile --background --chuid webtry --test > /dev/null \
54 start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON --make-pidfile --background --chuid webtry --exec $DAEMON -- \
63 # Function that stops the daemon/service
68 # 0 if daemon has been stopped
69 # 1 if daemon was already stopped
70 # 2 if daemon could not be stopped
72 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
75 # Wait for children to finish too if this is a daemon that forks
76 # and if the daemon is only ever run from this initscript.
81 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
89 # Function that sends a SIGHUP to the daemon/service
93 # If the daemon can reload its configuration without
97 start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
119 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?