etc-config/cron.hourly/logcheck.cron

11 lines
184 B
Bash

#!/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