mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-22 06:15:25 +00:00
init.d: unify standard_mode_daemons
This commit is contained in:
parent
991e3534a6
commit
207a6faf33
@ -128,6 +128,11 @@ do_nfqws()
|
|||||||
|
|
||||||
standard_mode_daemons()
|
standard_mode_daemons()
|
||||||
{
|
{
|
||||||
|
# $1 - 1 - run, 0 - stop
|
||||||
|
|
||||||
|
# stop logic is managed by procd
|
||||||
|
[ "$1" = 0 ] && return 0
|
||||||
|
|
||||||
local opt
|
local opt
|
||||||
[ "$TPWS_ENABLE" = 1 ] && check_bad_ws_options 1 "$TPWS_OPT" && {
|
[ "$TPWS_ENABLE" = 1 ] && check_bad_ws_options 1 "$TPWS_OPT" && {
|
||||||
opt="--port=$TPPORT $TPWS_OPT"
|
opt="--port=$TPPORT $TPWS_OPT"
|
||||||
@ -148,7 +153,7 @@ standard_mode_daemons()
|
|||||||
|
|
||||||
start_daemons_procd()
|
start_daemons_procd()
|
||||||
{
|
{
|
||||||
standard_mode_daemons
|
standard_mode_daemons 1
|
||||||
custom_runner zapret_custom_daemons 1
|
custom_runner zapret_custom_daemons 1
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user