mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00

* Add hint for rc.d service * Update README.md --------- Co-authored-by: root <root@prox1.example.com>
30 lines
466 B
Bash
30 lines
466 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: wireproxy
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: nojail
|
|
#
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable wireproxy:
|
|
#
|
|
#wireproxy_enable="YES"
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=wireproxy
|
|
rcvar=wireproxy_enable
|
|
|
|
load_rc_config $name
|
|
procname="/bin/wireproxy"
|
|
|
|
wireproxy_enable=${wireproxy_enable:-"NO"}
|
|
|
|
wireproxy_bin=/bin/wireproxy
|
|
wireproxy_conf=/etc/wireproxy.conf
|
|
|
|
command=${wireproxy_bin}
|
|
command_args="-s -d -c ${wireproxy_conf}"
|
|
|
|
run_rc_command "$1"
|