blob: b535441e5633dd08dc26868a8a14c8296554bc1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
# 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"
|