summaryrefslogtreecommitdiff
path: root/control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'control.sh')
-rw-r--r--control.sh21
1 files changed, 2 insertions, 19 deletions
diff --git a/control.sh b/control.sh
index 0177798..dc80bf0 100644
--- a/control.sh
+++ b/control.sh
@@ -1,20 +1,3 @@
-#!/bin/bash
+#!/bin/sh
-case $1 in
- start)
- perl PerlDaemon/PerlDaemon.pl ./conf/perldaemon.conf
- ;;
-
- stop)
- kill $(cat ./run/perldaemon.pid)
- ;;
-
- logrotate)
- kill -HUP $(cat ./run/perldaemon.pid)
- ;;
-
- *)
- echo "Usage: $0 <start|stop|logrotate>"
- exit 1
- ;;
-esac
+exec ./bin/perldaemon $@