From 816031ccd4a0bf5e4a5e4fa8c28b9b68a3b71d40 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 13 May 2011 14:06:19 +0000 Subject: ./bin contains the start script control.sh is just a wrapper --- bin/perldaemon | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/perldaemon (limited to 'bin') diff --git a/bin/perldaemon b/bin/perldaemon new file mode 100644 index 0000000..0177798 --- /dev/null +++ b/bin/perldaemon @@ -0,0 +1,20 @@ +#!/bin/bash + +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 " + exit 1 + ;; +esac -- cgit v1.2.3