diff options
| author | Paul Buetow <paul@buetow.org> | 2011-05-30 19:19:16 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-05-30 19:19:16 +0000 |
| commit | 5f5d8b12cec3d4c63a34a7f0fb0b0202a4c26244 (patch) | |
| tree | 29ae3cc634b5b0857a302227d80721d70f2c5a2d /bin | |
| parent | ccf10a048ad0ee7a2cd79d39d159698186f79351 (diff) | |
Passing of startup options work
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/perldaemon | 7 |
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) |
