我在freebsd(11.2-RELEASE-p10-HBSD FreeBSD)上安装了3proxy,这是从端口获取的,但是重新启动后无法自动加载 服务3代理启动-效果很好 我使/usr/local/etc/rc.d/3proxy -rwxr-xr-x 1根轮653 Feb 26 20:35 3proxy
#!/bin/sh
# $FreeBSD: head/net/3proxy/files/3proxy.in 340872 2014-01-24 00:14:07Z mat $
# 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-"/usr/local/etc/3proxy.cfg"}
. /etc/rc.subr
name="threeproxy"
rcvar=threeproxy_enable
command="/usr/local/bin/3proxy"
load_rc_config $name
start_cmd="echo \"Starting ${name}.\"; ${command} ${threeproxy_flags} &"
run_rc_command "$1"
然后在此处/etc/rc.conf
threeproxy_enable="YES"
但是重新启动后,我还看到该服务已关闭-我该怎么办?
我还考虑了crontab和@reboot。 请帮助我