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