From e90788c9b8d75b972543a3c93250612703979849 Mon Sep 17 00:00:00 2001 From: Lucas de Castro Borges Date: Thu, 5 Dec 2024 16:16:49 -0300 Subject: Fixed wrong typo and exit code The sysv script had working exit code when daemon binary not exist. restart target had mistyped call. --- debian/foolsm.init | 4 ++-- 1 file 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 $? -- cgit v1.2.3