diff options
| author | Paul Buetow <paul@buetow.org> | 2011-06-13 09:44:32 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-06-13 09:44:32 +0000 |
| commit | 82eaabb6e7170514753f92804da5e6ea676caa0c (patch) | |
| tree | d7a3e6fa2d2d62ddb6339858e6f84cad88734d68 /bin | |
| parent | ddc8ba05b25c754ef41067a9127cfe2bb9f2bf22 (diff) | |
Released PerlDaemon v1.2
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/perldaemon | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/perldaemon b/bin/perldaemon index feaa68a..11c1a7e 100755 --- a/bin/perldaemon +++ b/bin/perldaemon @@ -35,6 +35,10 @@ logrotate () { kill -HUP $(cat ./run/perldaemon.pid) } +keys () { + perl -I$LIBDIR $LIBDIR/PerlDaemon/PerlDaemon.pl config=./conf/perldaemon.conf keys=1 $@ +} + case $ARG in start) shift @@ -59,8 +63,12 @@ case $ARG in start daemon.daemonize=no $@ ;; + keys) + keys $@ + ;; + *) - echo "Usage: $0 <start|stop|restart|logrotate|foreground>" + echo "Usage: $0 <start|stop|restart|logrotate|foreground|keys> [key1=val1 [[key2=val2] ...]]" exit 1 ;; esac |
