freebsd-ports/irc/irc/files/ircd.sh.in
Johan van Selst 71c13ef116 - Update to 2.11.2
- Simplify Makefile
- Claim maintainership
2008-06-21 08:13:25 +00:00

30 lines
476 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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=`set_rcvar`
load_rc_config $name
: ${ircd_enable="NO"}
pidfile="%%PREFIX%%/var/run/ircd.pid"
command="%%PREFIX%%/sbin/ircd"
run_rc_command "$1"