Subject: | Small bugs (& patches) for "restart" and "status" options |
Hi,
I stumbled upon 2 small problems (diffs against version 0.13 attached):
- Currently the "restart" option is not accessible,
because the command line parser ignores it
- after "restart" the program will start in foreground
- for "status", background mode is set
Regards,
Peter
Subject: | libapp-daemon.diff |
--- Daemon.pm.org 2011-07-20 06:04:26.000000000 +0200
+++ Daemon.pm 2011-11-24 11:31:50.000000000 +0100
@@ -79,14 +79,14 @@
if(!defined $loglevel);
$loglevel = find_option('-v') ? $DEBUG : $loglevel;
- for (qw(start stop status)) {
+ for (qw(start stop restart status)) {
if( find_option( $_ ) ) {
$action = $_;
last;
}
}
- if($action eq "stop" or $action eq "restart") {
+ if($action eq "stop" or $action eq "status") {
$background = 0;
}