diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-04-13 10:58:56 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-13 10:58:56 -0300 |
commit | 561b76b591ff7c26880537bd950097965435c96f (patch) | |
tree | 0ea8c42f394040c40963e958f4125e9d4f0c1380 /etc | |
parent | 52f67967b3ccfd0ac56db35b93b775a4053c8f8e (diff) | |
parent | 6587e2afe3077bd601e0d5ba6f1e0c2f9b7f47f8 (diff) | |
download | pfsense-561b76b591ff7c26880537bd950097965435c96f.zip pfsense-561b76b591ff7c26880537bd950097965435c96f.tar.gz |
Merge pull request #1605 from Robert-Nelson/issue-4603
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 3 |
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"; } } |