From db2bf4b9dbe3388e074a1144ac3f0e9b04d43b96 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 21 Apr 2022 23:42:42 +0200 Subject: fix --- control | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/control b/control index c339267..c7a6dde 100755 --- a/control +++ b/control @@ -16,12 +16,12 @@ if [ -z "$LIBDIR" ]; then exit 1 fi -function start { +function start_it { echo Starting daemon now... perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl config=./conf/perldaemon.conf $@ } -function stop { +function stop_it { if [ -f ./run/perldaemon.pid ]; then echo "Stopping daemon now..." kill `cat ./run/perldaemon.pid`; @@ -30,7 +30,7 @@ function stop { fi } -function logrotate { +function logrotate_it { echo Triggering a logrotate kill -HUP $(cat ./run/perldaemon.pid) } @@ -42,25 +42,25 @@ function keys { case $ARG in start) shift - start $@ + start_it $@ ;; stop) - stop + stop_it ;; restart) shift - stop - start $@ + stop_it + start_it $@ ;; logrotate) - logrotate + logrotate_it ;; foreground) - start daemon.daemonize=no $@ + start_it daemon.daemonize=no $@ ;; keys) -- cgit v1.2.3