d41b4ba4d0
The startup script of 3proxy supplied with the port unnecessary overrides default start_cmd constructed with rc.subr procedures. This breaks, for example, the following setting in /etc/rc.conf: threeproxy_fib="1" This and similar <servicename>_SETTINGS are ignored due to such an override. Fix it. PR: 293937 Maintainer timeout: 3 weeks
27 lines
501 B
Bash
27 lines
501 B
Bash
#!/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
|
|
|
|
run_rc_command "$1"
|