#!@l_prefix@/bin/openpkg rc
##
##  rc.tripwire -- Run-Commands
##

%config
    tripwire_enable="$openpkg_rc_def"
    tripwire_log_prolog="true"
    tripwire_log_epilog="true"
    tripwire_log_numfiles="10"
    tripwire_log_minsize="1M"
    tripwire_log_complevel="9"

%daily -u @l_susr@
    rcService tripwire enable yes || exit 0
    shtool rotate -f \
        -n ${tripwire_log_numfiles} -s ${tripwire_log_minsize} -d \
        -z ${tripwire_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
        -P "${tripwire_log_prolog}" \
        -E "${tripwire_log_epilog}" \
        @l_prefix@/var/tripwire/tripwire.log

