You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
354 B
12 lines
354 B
#!/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 "$@"
|