iniscript: Make sure the cache has enough time to save to disk
This commit is contained in:
@@ -339,7 +339,7 @@ case "$1" in
|
|||||||
SLEEP="sleep"
|
SLEEP="sleep"
|
||||||
SLEEPTIME=0.2
|
SLEEPTIME=0.2
|
||||||
fi
|
fi
|
||||||
N=30
|
N=300
|
||||||
while [ $N -gt 0 ]
|
while [ $N -gt 0 ]
|
||||||
do
|
do
|
||||||
pid="$(cat "$SMARTDNS_PID" | head -n 1 2>/dev/null)"
|
pid="$(cat "$SMARTDNS_PID" | head -n 1 2>/dev/null)"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ EnvironmentFile=@SYSCONFDIR@/default/smartdns
|
|||||||
ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS
|
ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
TimeoutStopSec=5
|
TimeoutStopSec=15
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user