summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-05-13 14:34:35 +0000
committerPaul Buetow <paul@buetow.org>2011-05-13 14:34:35 +0000
commit99facbe533184f818502f14205ac6566fbcd5e9b (patch)
treee7c2574850cb4d88810a80b0e8452506fb80be58 /bin
parente49102eea89f9f7b44945401882e7284b593f7cf (diff)
added symlink
Diffstat (limited to 'bin')
-rw-r--r--bin/perldaemon14
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/perldaemon b/bin/perldaemon
index d7b1792..3a66064 100644
--- a/bin/perldaemon
+++ b/bin/perldaemon
@@ -9,13 +9,21 @@ for path in ${LIBPATHS[@]}; do
fi
done
+start () perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl ./conf/perldaemon.conf
+stop () kill $(cat ./run/perldaemon.pid)
+
case $1 in
start)
- perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl ./conf/perldaemon.conf
+ start
;;
stop)
- kill $(cat ./run/perldaemon.pid)
+ stop
+ ;;
+
+ restart)
+ stop
+ start
;;
logrotate)
@@ -23,7 +31,7 @@ case $1 in
;;
*)
- echo "Usage: $0 <start|stop|logrotate>"
+ echo "Usage: $0 <start|stop|restart|logrotate>"
exit 1
;;
esac