aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ngircd/files/ngircd.in
blob: 2ffc1e661579940df8168c5abd5fc7342afb85e6 (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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ngircd
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run ngircd:
#
# ngircd_enable (bool):     Set it to "YES" to enable ngircd.
#               Default is "NO".
# ngircd_conf (file):       Set local of config file.
#               Default is "%%PREFIX%%/etc/ngircd.conf".
# ngircd_flags (flags):     Set extra flags here. More options in ngircd(1)
#               Default is empty "".
#

. /etc/rc.subr

name="ngircd"
rcvar="ngircd_enable"

load_rc_config $name

: ${ngircd_enable="NO"}
: ${ngircd_conf="%%PREFIX%%/etc/ngircd.conf"}

required_files="${ngircd_conf}"
command=%%PREFIX%%/sbin/ngircd
command_args="-f ${ngircd_conf}"

run_rc_command "$1"