Files
ports/net/3proxy/files/3proxy.in
T
Eugene Grosbein d41b4ba4d0 net/3proxy: fix defect in its startup script
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
2026-04-11 10:49:37 +07:00

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"