diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-10 18:45:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-10 18:45:26 +0000 |
commit | f50d60b8eb707b56133e594376e993b98e726b5d (patch) | |
tree | be9f0c658e4e0ace79af92f89becddd06c01c772 /app-admin/logcheck/files/logcheck-r3.cron | |
parent | 84e395ce722d1f39cf3ef1467b23eda9c2462017 (diff) |
gentoo auto-resync : 10:03:2024 - 18:45:26
Diffstat (limited to 'app-admin/logcheck/files/logcheck-r3.cron')
-rw-r--r-- | app-admin/logcheck/files/logcheck-r3.cron | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-admin/logcheck/files/logcheck-r3.cron b/app-admin/logcheck/files/logcheck-r3.cron new file mode 100644 index 000000000000..2ae64f767871 --- /dev/null +++ b/app-admin/logcheck/files/logcheck-r3.cron @@ -0,0 +1,11 @@ +#!/bin/sh +# +# To enable sync via cron, execute "runuser -u logcheck touch /etc/logcheck/cron-logcheck-enabled" +if [[ ! -f /etc/logcheck/cron-logcheck-enabled ]]; then + exit +fi +if [ ! -d /var/lock/logcheck ]; then + mkdir -p /var/lock/logcheck + chown logcheck:logcheck /var/lock/logcheck +fi +/sbin/runuser -u logcheck --nice -n10 /usr/sbin/logcheck "$@" |