blob: 3d29474f4e23fda5f978b171d5385d825a28d635 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ircd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# Add the following line(s) to /etc/rc.conf:
# ircd_enable (bool): Set to "NO" by default, set it to "YES" to enable ircd
# ircd_user (str): Default to "%%USER%%"
ircd_enable=${ircd_enable-"NO"}
ircd_user=${ircd_user-"ircd"}
. /etc/rc.subr
name="ircd"
rcvar=`set_rcvar`
pidfile="/usr/local/etc/ptlink-ircd/ircd.pid"
command="/usr/local/bin/ircd"
load_rc_config "$name"
run_rc_command "$1"
|