|
@@ -15,9 +15,9 @@
|
|
|
|
|
|
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
|
|
-DESC="The simple time display daemon"
|
|
|
+DESC="simple time display daemon"
|
|
|
NAME="stdd"
|
|
|
-DAEMON=/usr/sbin/$NAME
|
|
|
+DAEMON=/usr/bin/$NAME
|
|
|
DAEMON_ARGS="-d -c /etc/stdd.conf -u $STDD_USER -g $STDD_GROUP"
|
|
|
SCRIPTNAME=/etc/init.d/$NAME
|
|
|
|
|
@@ -51,7 +51,7 @@ do_start()
|
|
|
# 1 if daemon was already running
|
|
|
# 2 if daemon could not be started
|
|
|
start-stop-daemon --status --quiet --pidfile $PIDFILE > /dev/null \
|
|
|
- || return 1
|
|
|
+ && exit 1
|
|
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
|
|
$DAEMON_ARGS \
|
|
|
|| return 2
|