summaryrefslogtreecommitdiff
path: root/irc/ptlink-services/files/ptlink-services.sh.in
blob: 1e3ecd40238bd45182bf9370f896c463694e4121 (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: services
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON

# Add the following line(s) to /etc/rc.conf:
# services_enable (bool): Set to "NO" by default, set it to "YES" to enable services
# services_user (str): Default to "ircd"

services_enable=${services_enable-"NO"}
services_user=${services_user-"ircd"}

. %%RC_SUBR%%

name="services"
rcvar=`set_rcvar`
pidfile="/var/run/ircsvs.pid"
command="%%PREFIX%%/bin/ircsvs"

load_rc_config "$name"
run_rc_command "$1"