From a12f416baa722b8bda57c0d527fb28b3d06b2aeb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 27 Jul 2023 10:33:45 +0100 Subject: gentoo auto-resync : 27:07:2023 - 10:33:45 --- app-admin/logcheck/files/logcheck.cron | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app-admin/logcheck/files/logcheck.cron (limited to 'app-admin/logcheck/files/logcheck.cron') diff --git a/app-admin/logcheck/files/logcheck.cron b/app-admin/logcheck/files/logcheck.cron new file mode 100644 index 000000000000..091e1bd895b7 --- /dev/null +++ b/app-admin/logcheck/files/logcheck.cron @@ -0,0 +1,11 @@ +#!/bin/sh +# +# To enable sync via cron, execute "sudo -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 +sudo -u logcheck nice -n10 /usr/sbin/logcheck -- cgit v1.2.3