#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
##
##  rc.portfwd -- Run-Commands for portfwd daemon
##

%config
    portfwd_enable="yes"
    portfwd_flags=""

%start -p 100 -u root
    if opServiceEnabled portfwd; then
        @l_prefix@/sbin/portfwd $portfwd_flags
    fi

%stop -p 200 -u root
    if opServiceEnabled portfwd; then
        rpmtool signal -d 1 -m @l_prefix@/sbin/portfwd TERM KILL >/dev/null 2>&1 || true
    fi

