aboutsummaryrefslogtreecommitdiffstats
path: root/config/syslog-ng
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-07-28 21:12:35 +0200
committerdoktornotor <notordoktor@gmail.com>2015-07-28 21:12:35 +0200
commit48319653301a7fac2bf622fdb7bebe7cd595cd58 (patch)
tree82b25e4974d19e1bc264bc69cdfccdc0ac038d06 /config/syslog-ng
parent58cbb8282ac44aeaaa1ba2aaa06d2c74d3e774f6 (diff)
downloadpfsense-packages-48319653301a7fac2bf622fdb7bebe7cd595cd58.tar.gz
pfsense-packages-48319653301a7fac2bf622fdb7bebe7cd595cd58.tar.bz2
pfsense-packages-48319653301a7fac2bf622fdb7bebe7cd595cd58.zip
Bug #4612 - fix syslog-ng logrotate cron job
Fix the path to logrotate binary.
Diffstat (limited to 'config/syslog-ng')
-rw-r--r--config/syslog-ng/syslog-ng.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/syslog-ng/syslog-ng.inc b/config/syslog-ng/syslog-ng.inc
index bbec3a7c..1643c03f 100644
--- a/config/syslog-ng/syslog-ng.inc
+++ b/config/syslog-ng/syslog-ng.inc
@@ -165,7 +165,7 @@ function syslogng_install_cron($should_install) {
$cron_item['month'] = "*";
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
- $cron_item['command'] = "/usr/bin/nice -n20 /usr/local/sbin/logrotate /usr/local/etc/logrotate.conf";
+ $cron_item['command'] = "/usr/bin/nice -n20 " . SYSLOGNG_BASEDIR . "local/sbin/logrotate /usr/local/etc/logrotate.conf";
$config['cron']['item'][] = $cron_item;
$need_write = true;
}