summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-04-21 23:42:42 +0200
committerPaul Buetow <paul@buetow.org>2022-04-21 23:42:42 +0200
commitdb2bf4b9dbe3388e074a1144ac3f0e9b04d43b96 (patch)
tree3b4530d41c6f2ddb829c2fa6ed00e90a056f0bb4
parent48d7890b0112125b36132f477bd04e57623bb3a7 (diff)
fix
-rwxr-xr-xcontrol18
1 files 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)