gentoo-ebuilds/app-admin/logcheck/files/logcheck-r5.cron
Giuseppe Foti 16f51eb30e
app-admin/logcheck: add sys-apps/debianutils to RDEPEND
Closes: https://bugs.gentoo.org/930785
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38854
Signed-off-by: Sam James <sam@gentoo.org>
2024-10-06 09:32:51 +01:00

11 lines
354 B
Bash

#!/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 "$@"