diff options
| author | Paul Buetow <paul@buetow.org> | 2022-04-21 23:42:42 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-04-21 23:42:42 +0200 |
| commit | db2bf4b9dbe3388e074a1144ac3f0e9b04d43b96 (patch) | |
| tree | 3b4530d41c6f2ddb829c2fa6ed00e90a056f0bb4 | |
| parent | 48d7890b0112125b36132f477bd04e57623bb3a7 (diff) | |
fix
| -rwxr-xr-x | control | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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) |
