summaryrefslogtreecommitdiff
path: root/app-admin/logcheck/files/logcheck-r3.cron
blob: 2ae64f7678719f7d8f8df5f7a8bc9dd5762a9006 (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 "$@"