#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
##
##  rc.dcron -- Run-Commands for DCRON Daemon
##

%config
    dcron_enable="yes"

%start -p 200 -u root
    opServiceEnabled dcron || exit 0
    @l_prefix@/sbin/crond

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

