#!/bin/sh
#
# $FreeBSD: ports/irc/irc/files/ircd.in,v 1.2 2012/11/17 05:58:28 svnexp Exp $
#

# PROVIDE: ircd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable ircd:
# ircd_enable (bool):           Set to "NO" by default.
#                               Set it to "YES" to enable ircd.
#

. /etc/rc.subr

name="ircd"
rcvar=ircd_enable

load_rc_config $name

: ${ircd_enable="NO"}

pidfile="/usr/local/var/run/ircd.pid"
command="/usr/local/sbin/ircd"

run_rc_command "$1"

