aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rwxr-xr-xservice/syncemail5
1 files changed, 3 insertions, 2 deletions
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
}