summaryrefslogtreecommitdiff
path: root/irc/irc/files/ircd.in
blob: 5e1ff858b4c6221e653de99bfe7f2d2e142ce095 (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
#!/bin/sh
#
# $FreeBSD$
#

# 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"