mirror of https://github.com/agdsn/xerxes.git
Bugfixes
(cherry picked from commit 87f430d9a3d60c9d7c4cb93cb6e63186f5c01a8f)
This commit is contained in:
parent
08c6281462
commit
39b6210657
|
|
@ -25,30 +25,24 @@ set -e
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $DESC: "
|
echo -n "Starting $DESC: "
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --chuid xerxes -b --exec $DAEMON -- $DAEMON_OPTS
|
||||||
--exec $DAEMON -- $DAEMON_OPTS
|
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
echo -n "Stopping $DESC: "
|
||||||
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
|
||||||
--exec $DAEMON
|
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
force-reload)
|
force-reload)
|
||||||
# check wether $DAEMON is running. If so, restart
|
# check wether $DAEMON is running. If so, restart
|
||||||
start-stop-daemon --stop --test --quiet --pidfile \
|
start-stop-daemon --stop --test --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON && $0 restart \
|
||||||
/var/run/$NAME.pid --exec $DAEMON \
|
|
||||||
&& $0 restart \
|
|
||||||
|| exit 0
|
|| exit 0
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
echo -n "Restarting $DESC: "
|
echo -n "Restarting $DESC: "
|
||||||
start-stop-daemon --stop --quiet --pidfile \
|
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
|
||||||
/var/run/$NAME.pid --exec $DAEMON
|
|
||||||
sleep 1
|
sleep 1
|
||||||
start-stop-daemon --start --quiet --pidfile \
|
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --chuid xerxes -b --exec $DAEMON -- $DAEMON_OPTS
|
||||||
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
|
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue