summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-05-30 19:19:16 +0000
committerPaul Buetow <paul@buetow.org>2011-05-30 19:19:16 +0000
commit5f5d8b12cec3d4c63a34a7f0fb0b0202a4c26244 (patch)
tree29ae3cc634b5b0857a302227d80721d70f2c5a2d /bin
parentccf10a048ad0ee7a2cd79d39d159698186f79351 (diff)
Passing of startup options work
Diffstat (limited to 'bin')
-rwxr-xr-xbin/perldaemon7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/perldaemon b/bin/perldaemon
index 0558006..d3991bd 100755
--- a/bin/perldaemon
+++ b/bin/perldaemon
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env bash
declare -r ARG=$1
declare -a LIBPATHS=(./lib ../lib /lib /usr/lib /usr/local/lib /opt/lib)
@@ -17,7 +17,7 @@ fi
start () {
echo Starting daemon now...
- perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl ./conf/perldaemon.conf
+ perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl config=./conf/perldaemon.conf $@
}
stop () {
@@ -36,7 +36,8 @@ logrotate () {
case $ARG in
start)
- start
+ shift
+ start $@
;;
stop)