PID File is now configurable

master
Daniel Berteaud 10 years ago
parent c4b8fccb82
commit 2efadd4d43
  1. 2
      conf/settings.ini.dist
  2. 3
      vroom.pl

@ -67,3 +67,5 @@
; server backend. Can be either morbo (DEV) or hypnotoad (PROD) ; server backend. Can be either morbo (DEV) or hypnotoad (PROD)
; default is hypnotoad ; default is hypnotoad
;backend = 'hypnotoad' ;backend = 'hypnotoad'
; PID file, only used if backend is hypnotoad
;pid_file = '/tmp/vroom.pird'

@ -52,6 +52,7 @@ $config->{'etherpad.base_domain'} ||= '';
$config->{'daemon.listen_ip'} ||= '127.0.0.1'; $config->{'daemon.listen_ip'} ||= '127.0.0.1';
$config->{'daemon.listen_port'} ||= '8090'; $config->{'daemon.listen_port'} ||= '8090';
$config->{'daemon.backend'} ||= 'hypnotoad'; $config->{'daemon.backend'} ||= 'hypnotoad';
$config->{'daemon.pid_file'} ||= '/tmp/vroom.pid';
# Set log level # Set log level
app->log->level($config->{'log.level'}); app->log->level($config->{'log.level'});
@ -1906,7 +1907,7 @@ app->hook(before_dispatch => sub {
app->config( app->config(
hypnotoad => { hypnotoad => {
listen => ['http://' . $config->{'daemon.listen_ip'} . ':' . $config->{'daemon.listen_port'}], listen => ['http://' . $config->{'daemon.listen_ip'} . ':' . $config->{'daemon.listen_port'}],
pid_file => '/tmp/vroom.pid', pid_file => $config->{'daemon.pid_file'},
proxy => 1 proxy => 1
} }
); );

Loading…
Cancel
Save