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

%config
    ircd_enable="yes"

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

%stop -p 200 -u root
    opServiceEnabled ircd || exit 0
    kill -TERM `cat @l_prefix@/var/ircd/ircd.pid`

%restart -u root
    opServiceEnabled ircd || exit 0
    kill -TERM `cat @l_prefix@/var/ircd/ircd.pid`
    sleep 2
    @l_prefix@/sbin/ircd

%reload -u root
    opServiceEnabled ircd || exit 0
    kill -HUP `cat @l_prefix@/var/ircd/ircd.pid`

