mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
security/logcheck: Add patch to change crontab entry
When the host is heavily loaded, the log files can grow incredibly and one logcheck invocation may not complete before it is invoked next time. This commit add patch to change crontab entries so it uses lockf(1) to avoid multiple invocation of logcheck under such situation as above. PR: 276023
This commit is contained in:
parent
10ba6e6bc7
commit
4d161fff03
@ -1,6 +1,6 @@
|
|||||||
PORTNAME= logcheck
|
PORTNAME= logcheck
|
||||||
DISTVERSION= 1.4.3
|
DISTVERSION= 1.4.3
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= security
|
CATEGORIES= security
|
||||||
MASTER_SITES= DEBIAN_POOL
|
MASTER_SITES= DEBIAN_POOL
|
||||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
--- debian/logcheck.cron.d.orig 2017-01-25 21:08:04 UTC
|
--- debian/logcheck.cron.d.orig 2023-07-18 10:54:00 UTC
|
||||||
+++ debian/logcheck.cron.d
|
+++ debian/logcheck.cron.d
|
||||||
@@ -1,9 +1,5 @@
|
@@ -1,9 +1,5 @@
|
||||||
-# /etc/cron.d/logcheck: crontab entries for the logcheck package
|
-# /etc/cron.d/logcheck: crontab entries for the logcheck package
|
||||||
@ -12,5 +12,5 @@
|
|||||||
-2 * * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi
|
-2 * * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi
|
||||||
-
|
-
|
||||||
-# EOF
|
-# EOF
|
||||||
+@reboot if [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck -R; fi
|
+@reboot if [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck -R; fi
|
||||||
+2 * * * * if [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck; fi
|
+2 * * * * if [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user