#!/bin/bash set -e if [ ! -d /run/lock/logcheck ]; then mkdir -p /run/lock/logcheck fi chown -R logcheck:logcheck /run/lock/logcheck su -s /bin/bash -c /usr/sbin/logcheck logcheck