summaryrefslogtreecommitdiff
path: root/net/3proxy/files/3proxy.in
blob: b93347d320756d1397e4f14b2bf6df95b4c5bde5 (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
#!/bin/sh

# PROVIDE: threeproxy
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

# Define these threeproxy_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/threeproxy
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE

threeproxy_enable=${threeproxy_enable-"NO"}
threeproxy_flags=${threeproxy_flags-"%%PREFIX%%/etc/3proxy.cfg"}

. /etc/rc.subr

name="threeproxy"
rcvar=threeproxy_enable
command="%%PREFIX%%/bin/3proxy"

load_rc_config $name

start_cmd="echo \"Starting ${name}.\";	${command} ${threeproxy_flags}"

run_rc_command "$1"