mirror of https://github.com/XTLS/Xray-install
Merge d752b7a3fc
into b7410c4e2f
commit
965b8324b6
|
@ -9,7 +9,6 @@ respawn_max=2
|
||||||
respawn_period=600
|
respawn_period=600
|
||||||
|
|
||||||
pidfile="/run/${RC_SVCNAME}.pid"
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
rc_ulimit="-n 1024000 -u 1024000"
|
|
||||||
capabilities="^cap_net_bind_service,^cap_net_admin,^cap_net_raw"
|
capabilities="^cap_net_bind_service,^cap_net_admin,^cap_net_raw"
|
||||||
extra_commands="checkconfig"
|
extra_commands="checkconfig"
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ depend() {
|
||||||
|
|
||||||
checkconfig() {
|
checkconfig() {
|
||||||
export $env
|
export $env
|
||||||
$command $command_args -test
|
su ${command_user%:*} -s /bin/sh -c "$command $command_args -test"
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue