From 5e843d61702c967748dfa9c84860152113831542 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 6 Feb 2011 11:02:18 +0000 Subject: added control.sh which includes start, stop and logrotate removed obsolete start.sh and stop.sh scripts logrotating now works in perldaemon.pl --- control.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 control.sh (limited to 'control.sh') diff --git a/control.sh b/control.sh new file mode 100644 index 0000000..346f736 --- /dev/null +++ b/control.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +case $1 in + start) + perl perldaemon.pl perldaemon.conf + ;; + + stop) + kill $(cat perldaemon.pid) + ;; + + logrotate) + kill -HUP $(cat perldaemon.pid) + ;; + + *) + echo "Usage: $0 " + exit 1 + ;; +esac -- cgit v1.2.3