mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
4019b070f6
This is a port of the ircd-ratbox IRC daemon. ircd-ratbox is the primary ircd used on EFnet; it combines the stability of an ircd required for a large production network together with a rich set of features, making it also suitable for use on smaller networks. WWW: http://www.ircd-ratbox.org/ PR: ports/92404 Submitted by: Shaun Amott <shaun@inerd.com>
36 lines
576 B
Bash
36 lines
576 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: ircd-ratbox
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="ircd_ratbox"
|
|
rcvar=`set_rcvar`
|
|
load_rc_config $name
|
|
|
|
ircd_ratbox_enable=${ircd_ratbox_enable:-"NO"}
|
|
ircd_ratbox_user=${ircd_ratbox_user:-"ircd"}
|
|
ircd_ratbox_group=${ircd_ratbox_group:-"ircd"}
|
|
|
|
command="%%PREFIX%%/bin/ircd"
|
|
pidfile=%%RUNDIR%%/ircd.pid
|
|
required_files="%%PREFIX%%/etc/ircd-ratbox/ircd.conf"
|
|
|
|
start_precmd=prestart
|
|
stop_precmd=prestop
|
|
|
|
prestart()
|
|
{
|
|
touch $pidfile
|
|
chown $ircd_ratbox_user:$ircd_ratbox_group $pidfile
|
|
}
|
|
|
|
prestop()
|
|
{
|
|
rm -f $pidfile
|
|
}
|
|
|
|
run_rc_command "$1"
|