init-script: only set -R for init-script.

This commit is contained in:
Nick Peng
2023-12-01 21:54:24 +08:00
parent fd2eb6980f
commit ce18317a08
2 changed files with 2 additions and 2 deletions

View File

@@ -2,4 +2,4 @@
# /etc/init.d/smartdns.
# Options to pass to smartdns
SMART_DNS_OPTS= -R
SMART_DNS_OPTS=

View File

@@ -37,7 +37,7 @@ test -x $SMARTDNS || exit 5
case $1 in
start)
$SMARTDNS "$SMART_DNS_OPTS"
$SMARTDNS "$SMART_DNS_OPTS" -R
while true; do
if [ -e "$PIDFILE" ]; then
break;