mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 14:15:07 +02:00
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>
11 lines
354 B
Bash
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 "$@"
|