Daemons now log to ~/logs/netdisco-{web,daemon}.log
This commit is contained in:
@@ -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";
|
||||
|
||||
Daemon::Control->new({
|
||||
name => 'Netdisco Daemon',
|
||||
program => ($ENV{NETDISCO_DAEMON} || $program),
|
||||
pid_file => "$ENV{HOME}/netdisco-daemon.pid",
|
||||
stderr_file => file($log_dir, 'netdisco-daemon.log'),
|
||||
stdout_file => file($log_dir, 'netdisco-daemon.log'),
|
||||
})->run;
|
||||
|
||||
Reference in New Issue
Block a user