Pass options into Handler::FastCGI under preferred names in the script
Andrew Rodland [Mon, 25 Jul 2011 16:38:30 +0000 (12:38 -0400)]
Map --daemon to 'daemonize' which is preferred instead of 'detach' which
is compat, and --pidfile as 'pid' which is preferred instead of
'pidfile' which is compat.

TODO
lib/Catalyst/Script/FastCGI.pm

diff --git a/TODO b/TODO
index 5ac46dd..5fcc354 100644 (file)
--- a/TODO
+++ b/TODO
@@ -37,12 +37,6 @@ http://github.com/willert/catalyst-plugin-log4perl-simple/tree
 
 #### Script survey
 
-##### myapp_web_fastcgi.pl
-
-Looks to me like we are mapping --deamon to --detach but I think the modern Plack FCGI handler prefers --deamonize
-
-Although --pidfile is supported --pid seems to be preferred, and if we are bothering to map, why not map for the future?
-
 ###  Nice to have
 
   * <@rafl> i've been thinking of maybe providing
index 1b2a2e9..781c327 100644 (file)
@@ -90,8 +90,9 @@ sub _plack_loader_args {
     my ($self) = shift;
 
     my $opts = Data::OptList::mkopt([
-      qw/pidfile manager nproc proc_title/,
-            detach          => [ 'daemon' ],
+      qw/manager nproc proc_title/,
+            pid             => [ 'pidfile' ],
+            daemonize       => [ 'daemon' ],
             keep_stderr     => [ 'keeperr' ],
             listen          => [ '_listen' ],
         ]);