[#191] Fix error when stopping stopped web daemon
This commit is contained in:
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
* [#171] Log files now rotate at 10MB up to seven times
|
* [#171] Log files now rotate at 10MB up to seven times
|
||||||
|
|
||||||
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* Another fix for NetAddr::MAC tripping up on v6 addresses
|
||||||
|
* [#191] Fix error when stopping stopped web daemon
|
||||||
|
|
||||||
2.030000 - 2015-01-08
|
2.030000 - 2015-01-08
|
||||||
|
|
||||||
[NEW FEATURES]
|
[NEW FEATURES]
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ my $log_file = file($log_dir, 'netdisco-web.log');
|
|||||||
foreach my $file ($pid_file, $log_file) {
|
foreach my $file ($pid_file, $log_file) {
|
||||||
unless (-e $file) {
|
unless (-e $file) {
|
||||||
sysopen my $fh, $file, O_WRONLY|O_CREAT|O_NONBLOCK|O_NOCTTY;
|
sysopen my $fh, $file, O_WRONLY|O_CREAT|O_NONBLOCK|O_NOCTTY;
|
||||||
|
print $fh '0' if $file eq $pid_file;
|
||||||
close $fh;
|
close $fh;
|
||||||
}
|
}
|
||||||
chown $uid, $gid, $file;
|
chown $uid, $gid, $file;
|
||||||
|
|||||||
Reference in New Issue
Block a user