summaryrefslogtreecommitdiff
blob: 1a8809ffe1545e0f3ba7fe4f887e42a5b4223db2 (plain)
1
2
3
4
5
6
7
8
9
10
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 "$@"