Browse files

Added a warning if you use -r/-R

  • Loading branch information...
1 parent 023e15b commit fb6e70299aef18d80ce2b70262b1c351e09c7639 @miyagawa committed Nov 14, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 bin/starman
View
10 bin/starman
@@ -24,6 +24,16 @@ my @argv = @ARGV;
my $runner = Plack::Runner->new(@args);
$runner->parse_options(@argv);
+
+if ($runner->{loader} eq 'Restarter') {
+ warn <<WARN;
+!!
+!! Using restarter with -r or -R options is known to cause issues with process supervisor
+!! such as start_server, and it is STRONGLY discouraged to use with Starman. You have been warned.
+!!
+WARN
+}
+
$runner->set_options(argv => \@argv);
$runner->run;

0 comments on commit fb6e702

Please sign in to comment.