logcheck.cron: hourly -> daily

This commit is contained in:
Kolan Sh 2016-04-05 04:08:16 +03:00
parent 85e5a69983
commit 5e8fe1dd21
2 changed files with 22 additions and 0 deletions

12
cron.daily/logcheck.cron Executable file
View File

@ -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

10
cron.hourly/logcheck.cron Normal file
View File

@ -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