Browse Source

init.d: allow to override WS_USER

pull/81/head
bol-van 3 years ago
parent
commit
fa8f061710
  1. 2
      init.d/macos/functions
  2. 2
      init.d/sysv/functions

2
init.d/macos/functions

@ -9,7 +9,7 @@ HOSTLIST="$ZHOSTLIST.gz"
PIDDIR=/var/run
[ -n "$TPPORT" ] || TPPORT=988
TPWS_USER=daemon
[ -n "$TPWS_USER" ] || TPWS_USER=daemon
TPWS_WAIT="--bind-wait-ifup=30 --bind-wait-ip=30"
TPWS_WAIT_SOCKS6="$TPWS_WAIT --bind-wait-ip-linklocal=30"
[ -n "$TPWS" ] || TPWS="$ZAPRET_BASE/tpws/tpws"

2
init.d/sysv/functions

@ -52,7 +52,7 @@ prepare_user()
}
}
WS_USER=tpws
[ -n "$WS_USER" ] || WS_USER=tpws
prepare_user
PIDDIR=/var/run

Loading…
Cancel
Save