1d6b4b3f91
s#. %%RC_SUBR%%#. /etc/rc.subr#
25 lines
462 B
Bash
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"
|