freebsd-ports/irc/ptlink-ircd/files/ptlink-ircd.sh.in

26 lines
462 B
Bash
Raw Normal View History

#!/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
2005-09-18 17:05:18 +02:00
# 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"
2005-09-18 17:05:18 +02:00
command="%%PREFIX%%/bin/ircd"
load_rc_config "$name"
run_rc_command "$1"