freebsd-ports/irc/ptlink-ircd/files/ptlink-ircd.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

25 lines
462 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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"}
. /etc/rc.subr
name="ircd"
rcvar=`set_rcvar`
pidfile="/var/run/ircd.pid"
command="%%PREFIX%%/bin/ircd"
load_rc_config "$name"
run_rc_command "$1"