diff --git a/cron.daily/logcheck.cron b/cron.daily/logcheck.cron new file mode 100755 index 0000000..74a393f --- /dev/null +++ b/cron.daily/logcheck.cron @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +which logcheck &>/dev/null || exit 0 + +if [ ! -d /var/lock/logcheck ]; then + mkdir -p /var/lock/logcheck +fi +chown -R logcheck:logcheck /var/lock/logcheck + +su -s /bin/bash -c /usr/sbin/logcheck logcheck diff --git a/cron.hourly/logcheck.cron b/cron.hourly/logcheck.cron new file mode 100644 index 0000000..3b3f4fc --- /dev/null +++ b/cron.hourly/logcheck.cron @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +if [ ! -d /var/lock/logcheck ]; then + mkdir -p /var/lock/logcheck +fi +chown -R logcheck:logcheck /var/lock/logcheck + +su -s /bin/bash -c /usr/sbin/logcheck logcheck