X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=31ba0b518564026c61f8770a85e00d366b836e6f;hb=bc7f5d0dc0d47924e74da9aa50f31ab31b51cdb9;hp=97598b537b7dd368578fcaa084f75df5930d3beb;hpb=fa60b7ee1f134f953e42c8432c307a944642b05a;p=catagits%2FCatalyst-Devel.git diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 97598b5..31ba0b5 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -974,6 +974,7 @@ my $restart_regex = '(?:/|^)(?!\.#).+(?:\.yml$|\.yaml$|\.conf|\.pm)$'; my $restart_directory = undef; my $follow_symlinks = 0; my $background = 0; +my $pidfile = undef; my @argv = @ARGV; @@ -990,6 +991,7 @@ GetOptions( 'restartdirectory=s@' => \$restart_directory, 'followsymlinks' => \$follow_symlinks, 'background' => \$background, + 'pidfile|p=s' => \$pidfile, ); pod2usage(1) if $help; @@ -1015,6 +1017,7 @@ require [% name %]; restart_directory => $restart_directory, follow_symlinks => $follow_symlinks, background => $background, + pidfile => $pidfile, } ); 1;