Skip Menu |

This queue is for tickets about the App-Daemon CPAN distribution.

Report information
The Basics
Id: 72835
Status: resolved
Priority: 0/
Queue: App-Daemon

People
Owner: Nobody in particular
Requestors: g_ml2000-x [...] yahoo.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



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; }
Applied: https://github.com/mschilli/app- daemon/commit/60f4930336100cf479cbb4ffc102294eb051f672 and released to CPAN as App::Daemon 0.14. Thanks for your contribution! -- Mike