Monitor the configuration file when running under morbo

This way config updates are taken immediatly
master
Daniel Berteaud 10 years ago
parent 2d4b454dd0
commit a394cc4619
  1. 2
      scripts/start_server.pl

@ -19,7 +19,7 @@ $config->{'daemon.backend'} ||= 'hypnotoad';
$ENV{'PERL5LIB'} = 'lib'; $ENV{'PERL5LIB'} = 'lib';
if ($config->{'daemon.backend'} eq 'morbo'){ if ($config->{'daemon.backend'} eq 'morbo'){
exec ('/usr/bin/morbo', '-l', 'http://' . $config->{'daemon.listen_ip'} . ':' . $config->{'daemon.listen_port'}, '-v', 'vroom.pl'); exec ('/usr/bin/morbo', '-l', 'http://' . $config->{'daemon.listen_ip'} . ':' . $config->{'daemon.listen_port'}, '-w', 'conf/settings.ini', '-v', 'vroom.pl');
} }
else{ else{
exec ('/usr/bin/hypnotoad', '-f', 'vroom.pl'); exec ('/usr/bin/hypnotoad', '-f', 'vroom.pl');

Loading…
Cancel
Save