cleanup init.d
This commit is contained in:
parent
7c74cd8b01
commit
9bf008c227
2 changed files with 3 additions and 3 deletions
|
@ -47,10 +47,10 @@ do_start()
|
||||||
# 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
|
||||||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $DAEMON_USER:$DAEMON_USER /var/log/pandora)
|
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $DAEMON_USER:$DAEMON_USER /var/log/pandora)
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \
|
||||||
--exec $DAEMON --test > /dev/null \
|
--exec $DAEMON --test > /dev/null \
|
||||||
|| return 1
|
|| return 1
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER -startas $DAEMON \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER --startas $DAEMON \
|
||||||
--make-pidfile --background --exec $DAEMON -- $DAEMON_ARGS \
|
--make-pidfile --background --exec $DAEMON -- $DAEMON_ARGS \
|
||||||
|| return 2
|
|| return 2
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ do_start()
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \
|
||||||
--exec $DAEMON --test > /dev/null \
|
--exec $DAEMON --test > /dev/null \
|
||||||
|| return 1
|
|| return 1
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER --startas $DAEMON \
|
||||||
--make-pidfile --background --exec $DAEMON -- $DAEMON_ARGS \
|
--make-pidfile --background --exec $DAEMON -- $DAEMON_ARGS \
|
||||||
|| return 2
|
|| return 2
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue