Daemons now log to ~/logs/netdisco-{web,daemon}.log
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
* Rewrite of the daemon to use Daemon::Control and MCE (cleaner netdisco
|
* Rewrite of the daemon to use Daemon::Control and MCE (cleaner netdisco
|
||||||
code and fewer deps)
|
code and fewer deps)
|
||||||
* Added daemonized version of the web-app server also using Daemon::Control
|
* Added daemonized version of the web-app server also using Daemon::Control
|
||||||
|
* Daemons now log to ~/logs/netdisco-{web,daemon}.log
|
||||||
* Version bump so that we'll be releasing odd numbered beta dists
|
* Version bump so that we'll be releasing odd numbered beta dists
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|||||||
@@ -10,10 +10,16 @@ BEGIN {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use Path::Class;
|
||||||
|
my $log_dir = dir($ENV{HOME}, 'logs');
|
||||||
|
mkdir $log_dir if ! -d $log_dir;
|
||||||
|
|
||||||
my $program = "$ENV{HOME}/bin/netdisco-daemon-fg";
|
my $program = "$ENV{HOME}/bin/netdisco-daemon-fg";
|
||||||
|
|
||||||
Daemon::Control->new({
|
Daemon::Control->new({
|
||||||
name => 'Netdisco Daemon',
|
name => 'Netdisco Daemon',
|
||||||
program => ($ENV{NETDISCO_DAEMON} || $program),
|
program => ($ENV{NETDISCO_DAEMON} || $program),
|
||||||
pid_file => "$ENV{HOME}/netdisco-daemon.pid",
|
pid_file => "$ENV{HOME}/netdisco-daemon.pid",
|
||||||
|
stderr_file => file($log_dir, 'netdisco-daemon.log'),
|
||||||
|
stdout_file => file($log_dir, 'netdisco-daemon.log'),
|
||||||
})->run;
|
})->run;
|
||||||
|
|||||||
@@ -10,9 +10,15 @@ BEGIN {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use Path::Class;
|
||||||
|
my $log_dir = dir($ENV{HOME}, 'logs');
|
||||||
|
mkdir $log_dir if ! -d $log_dir;
|
||||||
|
|
||||||
Daemon::Control->new({
|
Daemon::Control->new({
|
||||||
name => 'Netdisco Web',
|
name => 'Netdisco Web',
|
||||||
program => 'plackup',
|
program => 'plackup',
|
||||||
program_args => ["$ENV{HOME}/bin/netdisco-web-fg"],
|
program_args => ["$ENV{HOME}/bin/netdisco-web-fg"],
|
||||||
pid_file => "$ENV{HOME}/netdisco-web.pid",
|
pid_file => "$ENV{HOME}/netdisco-web.pid",
|
||||||
|
stderr_file => file($log_dir, 'netdisco-web.log'),
|
||||||
|
stdout_file => file($log_dir, 'netdisco-web.log'),
|
||||||
})->run;
|
})->run;
|
||||||
|
|||||||
Reference in New Issue
Block a user