From 82ad76d017ab7e098aa13f84d39c8b9df888c5da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 22 Apr 2017 10:39:13 +0200 Subject: Various small changes and fixes --- service/syncemail | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'service') diff --git a/service/syncemail b/service/syncemail index 7465676..a42e380 100755 --- a/service/syncemail +++ b/service/syncemail @@ -14,6 +14,7 @@ start() { } stop() { - kill "$(cat $pidfile)" - wait "$(cat $pidfile)" + PID="$(cat $pidfile)" + kill $PID 2>/dev/null + while kill -0 $PID 2>/dev/null; do sleep 1; done } -- cgit v1.2.3