|
@ -29,8 +29,8 @@ SCRIPTNAME=/etc/init.d/$NAME |
|
|
|
|
|
|
|
|
[ "$START" = "yes" ] || exit 0 |
|
|
[ "$START" = "yes" ] || exit 0 |
|
|
|
|
|
|
|
|
: ${USER:="root"} |
|
|
|
|
|
: ${GROUP:="root"} |
|
|
|
|
|
|
|
|
: ${USER:="nobody"} |
|
|
|
|
|
: ${GROUP:="nogroup"} |
|
|
|
|
|
|
|
|
# Load the VERBOSE setting and other rcS variables |
|
|
# Load the VERBOSE setting and other rcS variables |
|
|
. /lib/init/vars.sh |
|
|
. /lib/init/vars.sh |
|
@ -55,10 +55,10 @@ do_start() |
|
|
# 0 if daemon has been started |
|
|
# 0 if daemon has been started |
|
|
# 1 if daemon was already running |
|
|
# 1 if daemon was already running |
|
|
# 2 if daemon could not be started |
|
|
# 2 if daemon could not be started |
|
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid root:$GROUP --exec $DAEMON --test > /dev/null \ |
|
|
|
|
|
|
|
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON --test > /dev/null \ |
|
|
|| return 1 |
|
|
|| return 1 |
|
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid root:$GROUP --exec $DAEMON -- \ |
|
|
|
|
|
-c "$CONFFILE" -a "$USER" -u -f $PIDFILE $DAEMON_ARGS \ |
|
|
|
|
|
|
|
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON -- \ |
|
|
|
|
|
-c "$CONFFILE" -u -f $PIDFILE $DAEMON_ARGS \ |
|
|
|| return 2 |
|
|
|| return 2 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|