summaryrefslogtreecommitdiff
blob: 091e1bd895b77f5fcc27da09963f1091cd1367aa (plain)
1
2
3
4
5
6
7
8
9
10
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