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

%config
    kermit_enable="$openpkg_rc_def"
    kermit_log_prolog="true"
    kermit_log_epilog="true"
    kermit_log_numfiles="10"
    kermit_log_minsize="1M"
    kermit_log_complevel="9"

%daily -u @l_susr@
    rcService kermit enable yes || exit 0
    shtool rotate -f \
        -n ${kermit_log_numfiles} -s ${kermit_log_minsize} -d \
        -z ${kermit_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
        -P "${kermit_log_prolog}" \
        -E "${kermit_log_epilog}" \
        @l_prefix@/var/kermit/kermit.log

