summaryrefslogtreecommitdiff
path: root/security/logcheck/files/patch-debian_logcheck.cron.d
blob: 733a581860717307264b8587a5093327a70b5fb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- debian/logcheck.cron.d.orig	2025-04-28 15:28:43 UTC
+++ debian/logcheck.cron.d
@@ -1,8 +1,8 @@
 # /etc/cron.d/logcheck: crontab entries for the logcheck package
 # These do nothing under systemd because the systemd timer will take precedence
 
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+PATH=%%PREFIX%%/sbin:%%PREFIX%%/bin:/sbin:/bin:/usr/sbin:/usr/bin
 MAILTO=root
 
-@reboot         logcheck    if [ ! -d /run/systemd/system ] && [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi
-2 * * * *       logcheck    if [ ! -d /run/systemd/system ] && [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi
+@reboot         if [ ! -d /run/systemd/system ] && [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck -R; fi
+2 * * * *       if [ ! -d /run/systemd/system ] && [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck; fi