Skip to content
Snippets Groups Projects
Commit 3f0ac83f authored by godog's avatar godog
Browse files

fix init script

parent 51cadbc8
Branches
No related tags found
No related merge requests found
......@@ -51,14 +51,11 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
pre_start
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE -
-chuid $USER:$GROUP --umask 007 --exec $DAEMON --test > /dev/null \
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE \
--chuid $USER:$GROUP --umask 007 --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE -
-chuid $USER:$GROUP --umask 007 --exec $DAEMON -- \
--syslog $DAEMON_ARGS \
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE \
--chuid $USER:$GROUP --umask 007 --exec $DAEMON -- $DAEMON_ARGS \
|| return 2
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment