summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gear <github@libertysys.com.au>2017-03-02 22:26:34 +1000
committerGitHub <noreply@github.com>2017-03-02 22:26:34 +1000
commit0ff779958f9c8951bb7e3e866ca52bc70b470fa9 (patch)
treea37dd20b72a2af0176f9664f6aa4786ea939f627
parent7308178f1b9925064b728a53d79bbdcaef6eaf20 (diff)
downloadvyatta-cfg-vpn-0ff779958f9c8951bb7e3e866ca52bc70b470fa9.tar.gz
vyatta-cfg-vpn-0ff779958f9c8951bb7e3e866ca52bc70b470fa9.zip
Add missingok to logrotate for ipsec
If this is not present, it causes hourly messages in /var/log/messages like this: Mar 2 19:17:01 vyos /USR/SBIN/CRON[9140]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Mar 2 19:17:01 vyos /USR/SBIN/CRON[9138]: (CRON) error (grandchild #9140 failed with exit status 1) Mar 2 19:17:01 vyos /USR/SBIN/CRON[9138]: (CRON) info (No MTA installed, discarding output) This is because cron wants to produce output like the following when ipsec.log is not present: /etc/cron.hourly/vyatta-logrotate-hourly: error: stat of /var/log/vyatta/ipsec.log failed: No such file or directory run-parts: /etc/cron.hourly/vyatta-logrotate-hourly exited with return code 1
-rw-r--r--etc/logrotate.d/vyatta-ipsec-logs1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/logrotate.d/vyatta-ipsec-logs b/etc/logrotate.d/vyatta-ipsec-logs
index fe3c83d..bc4caa5 100644
--- a/etc/logrotate.d/vyatta-ipsec-logs
+++ b/etc/logrotate.d/vyatta-ipsec-logs
@@ -1,5 +1,6 @@
/var/log/vyatta/ipsec.log {
+ missingok
nocompress
size 1M
rotate 2