#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
##
##  rc.samhain -- Run-Commands for SAMHAIN
##

%config
    samhain_enable="yes"

%start -p 200 -u root
    opServiceEnabled samhain || exit 0
    @l_prefix@/sbin/samhain -t check -D

%stop -p 200 -u root
    opServiceEnabled samhain || exit 0
    if [ -f @l_prefix@/var/samhain/samhain.pid ]; then
        kill -TERM `cat @l_prefix@/var/samhain/samhain.pid`
    fi

