summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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)