CC: | mike.whitaker [...] bbc.co.uk, thomas.clark [...] bbc.co.uk |
Subject: | App::Daemon takes the wrong order for options |
App::Daemon does various command-line parsing bits to handle pid files, default logs etc.
The app that is calling App::Daemon::daemonize() can initialise various values which
represent sane defaults for that application (perhaps more sane than the App::Daemon
internal ones.
The priority for setting any of these values is therefore:
app-internal > command line > App::Daemon internal defaults
What should actually happen, however, is that you get a priority of something like:
command line > app-internal > App::Daemon internal
As this represents the properly specific -> generic hierarchy - going from - specific
instance, to specific application to generic library.
Patch to follow.
Cheers
MBM (CPAN:MATTBM)