Преглед изворни кода

iniscript: Make sure the cache has enough time to save to disk

Nick Peng пре 3 година
родитељ
комит
435b2905cf
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      package/optware/S50smartdns
  2. 1 1
      systemd/smartdns.service.in

+ 1 - 1
package/optware/S50smartdns

@@ -339,7 +339,7 @@ case "$1" in
 		SLEEP="sleep"
 		SLEEPTIME=0.2
 	fi
-	N=30
+	N=300
 	while [ $N -gt 0 ]
 	do
 		pid="$(cat "$SMARTDNS_PID" | head -n 1 2>/dev/null)"

+ 1 - 1
systemd/smartdns.service.in

@@ -11,7 +11,7 @@ EnvironmentFile=@SYSCONFDIR@/default/smartdns
 ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS 
 Restart=always
 RestartSec=2
-TimeoutStopSec=5
+TimeoutStopSec=15
 
 [Install]
 WantedBy=multi-user.target