diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-12-05 16:16:49 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-12-06 12:08:06 -0300 |
| commit | e90788c9b8d75b972543a3c93250612703979849 (patch) | |
| tree | f7d4f105a7b5c528378785421fe0d0163a4d6edf | |
| parent | a155bce9e5951dcce09d2e52a5750e69de7db63a (diff) | |
Fixed wrong typo and exit code
The sysv script had working exit code when daemon binary not exist.
restart target had mistyped call.
| -rwxr-xr-x | debian/foolsm.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/foolsm.init b/debian/foolsm.init index 96e9441..dd09349 100755 --- a/debian/foolsm.init +++ b/debian/foolsm.init @@ -29,7 +29,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin if [ ! -x $DAEMON ]; then log_daemon_msg "foolsm" "exectuble missing" log_progress_msg "not starting" - log_end_msg 1 + log_end_msg 0 fi if [ ! -r $CONFIG ]; then @@ -69,7 +69,7 @@ case "$1" in ;; restart) $0 stop - $ start + $0 start ;; status) status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $? |
