etc-config/cron.hourly/logcheck.cron

11 lines
184 B
Plaintext
Raw Normal View History

2016-04-05 04:08:16 +03:00
#!/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