mirror of https://github.com/XTLS/Xray-install
Use tab
parent
53829b0663
commit
34d38c70e7
14
init.d/xray
14
init.d/xray
|
@ -20,17 +20,17 @@ command_args="run -confdir $confdir"
|
||||||
required_files="$confdir"
|
required_files="$confdir"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need net
|
need net
|
||||||
want dns ntp-client
|
want dns ntp-client
|
||||||
after firewall
|
after firewall
|
||||||
}
|
}
|
||||||
|
|
||||||
checkconfig() {
|
checkconfig() {
|
||||||
export $env
|
export $env
|
||||||
$command $command_args -test
|
$command $command_args -test
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
checkconfig || return 1
|
checkconfig || return 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue