8ad869a17b
The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job.
14 lines
458 B
Text
14 lines
458 B
Text
$NetBSD: patch-examples_logrotate.cron,v 1.1.1.1 2012/03/06 04:53:24 sbd Exp $
|
|
|
|
Add pkgsrc paths compatibility
|
|
|
|
--- examples/logrotate.cron.orig 2011-08-31 12:39:04.000000000 +0000
|
|
+++ examples/logrotate.cron
|
|
@@ -1,6 +1,6 @@
|
|
#!/bin/sh
|
|
|
|
-/usr/sbin/logrotate /etc/logrotate.conf
|
|
+@PREFIX@/sbin/logrotate @PKG_SYSCONFDIR@/logrotate.conf
|
|
EXITVALUE=$?
|
|
if [ $EXITVALUE != 0 ]; then
|
|
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|