Files
ports/irc/undernet-ircu/files/undernet.in
T
John Marino e9889ec0e2 Stage irc/undernet-ircu and assign maintainership to submitter
Big changes include moving ircd from bin to sbin and installing lots
of documentation.  Also "disable" options were swapped to "enable"
options and turned on by default.

PR:		192720
Submitted by:	Daniel Austin
Add'l work by:	marino
2014-08-17 09:36:47 +00:00

36 lines
721 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: undernet
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# undernet_enable (bool): Set to NO by default.
# Set it to YES to enable undernet-ircu.
# undernet_config (path): Set to %%PREFIX%%/etc/ircd.conf
# by default.
. /etc/rc.subr
name=undernet
rcvar=undernet_enable
load_rc_config ${name}
: ${undernet_enable="NO"}
: ${undernet_config="%%PREFIX%%/etc/ircd.conf"}
undernet_user="undernet"
undernet_group="undernet"
command="%%PREFIX%%/sbin/ircd"
pidfile="undernet.pid"
piddir="/var/log/"
required_files="${undernet_config}"
command_args="-f ${undernet_config}"
run_rc_command "$1"