#!/bin/sh
#
# $FreeBSD: ports/irc/ptlink-ircd/files/ptlink-ircd.sh.in,v 1.3 2006/07/12 20:42:18 itetcu Exp $
#

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

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

ircd_enable=${ircd_enable-"NO"}
ircd_user=${ircd_user-"ircd"}

. %%RC_SUBR%%

name="ircd"
rcvar=`set_rcvar`
pidfile="/var/run/ircd.pid"
command="%%PREFIX%%/bin/ircd"

load_rc_config "$name"
run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1