diff options
Diffstat (limited to 'debian/echolot.init')
-rwxr-xr-x | debian/echolot.init | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debian/echolot.init b/debian/echolot.init index b5b2d41..e55cd05 100755 --- a/debian/echolot.init +++ b/debian/echolot.init @@ -24,7 +24,7 @@ wait_for_deaddaemon () { PID=$1 sleep 3 if test -n "$PID" - then + then if kill -0 $PID 2>/dev/null then echo -n "Waiting for pid $PID ." @@ -40,9 +40,9 @@ wait_for_deaddaemon () { sleep 2 echo -n "." done - rm -f /var/run/echolot/pingd.pid + rm -f /var/run/echolot/pingd.pid else - rm -f /var/run/echolot/pingd.pid + rm -f /var/run/echolot/pingd.pid fi fi } @@ -97,7 +97,7 @@ start) echo "$PIDFILE." fi fi - echo -n "Starting $DESC: " + echo -n "Starting $DESC: " start-stop-daemon \ --start \ --quiet \ @@ -108,7 +108,7 @@ start) ;; stop) - echo -n "Stopping $DESC: " + echo -n "Stopping $DESC: " PID=`cat $PIDFILE 2>/devnull` || true start-stop-daemon \ --stop \ |