[Git][NTPsec/ntpsec][master] Add sample config file for logrotate
Hal Murray
gitlab at mg.gitlab.com
Sun Jul 10 11:32:16 UTC 2016
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
759f50fb by Hal Murray at 2016-07-10T04:32:03-07:00
Add sample config file for logrotate
- - - - -
1 changed file:
- + etc/logrotate-config.ntpd
Changes:
=====================================
etc/logrotate-config.ntpd
=====================================
--- /dev/null
+++ b/etc/logrotate-config.ntpd
@@ -0,0 +1,13 @@
+# On Linux systems with logrotate,
+# drop this into /etc/logrotate.d/ntpd
+# That will rotate ntpd.log monthly and then
+# kick ntpd to switch to the new log file.
+
+/var/log/ntp/ntpd.log {
+ monthly
+ postrotate
+ /usr/bin/killall -HUP ntpd
+ endscript
+ rotate 9999
+}
+
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/759f50fb959bf159b4b406451ac9eae1f0c8b1c8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160710/83a6bb58/attachment.html>
More information about the vc
mailing list