summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Nelson <robertn@the-nelsons.org>2015-04-12 09:18:25 -0700
committerRenato Botelho <garga@FreeBSD.org>2015-04-13 11:01:49 -0300
commit750695f54ae803f2fafa8adce62b2dd63af3e037 (patch)
treefd3c0c1fbe4860a98de2d6ba918674d5ef52e179
parenteb4a5192ae9168ac16ae3a6b1e913db73af7b7c5 (diff)
downloadpfsense-750695f54ae803f2fafa8adce62b2dd63af3e037.zip
pfsense-750695f54ae803f2fafa8adce62b2dd63af3e037.tar.gz
Only initialize package's log if it doesn't exist
-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 8caa229..bdcd4f6 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -762,7 +762,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