Kaynağa Gözat

corrected the start method in the init script

Helmut Pozimski 11 yıl önce
ebeveyn
işleme
12615260a1
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      initscript/stdd

+ 3 - 3
initscript/stdd

@@ -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