summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRobert Nelson <robertn@the-nelsons.org>2015-04-12 09:18:25 -0700
committerRobert Nelson <robertn@the-nelsons.org>2015-04-12 09:18:25 -0700
commit6587e2afe3077bd601e0d5ba6f1e0c2f9b7f47f8 (patch)
treef23bf72d983cac91921d9d144b32b72b7687d665 /etc
parent986e77a2eab30201b2820294e73f35536b00408a (diff)
downloadpfsense-6587e2afe3077bd601e0d5ba6f1e0c2f9b7f47f8.zip
pfsense-6587e2afe3077bd601e0d5ba6f1e0c2f9b7f47f8.tar.gz
Only initialize package's log if it doesn't exist
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 7fbae79..5a3ed5b 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -838,7 +838,8 @@ function system_syslogd_start() {
foreach ($config['installedpackages']['package'] as $package) {
if ($package['logging']) {
array_push($separatelogfacilities, $package['logging']['facilityname']);
- mwexec("{$log_create_directive} {$log_size} {$g['varlog_path']}/{$package['logging']['logfilename']}");
+ if (!is_file($g['varlog_path'].'/'.$package['logging']['logfilename']))
+ mwexec("{$log_create_directive} {$log_size} {$g['varlog_path']}/{$package['logging']['logfilename']}");
$syslogconf .= "!{$package['logging']['facilityname']}\n*.*\t\t\t\t\t\t {$log_directive}{$g['varlog_path']}/{$package['logging']['logfilename']}\n";
}
}
OpenPOWER on IntegriCloud