logcheck.cron: hourly -> daily
This commit is contained in:
parent
85e5a69983
commit
5e8fe1dd21
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue