diff options
Diffstat (limited to 'recipes/clamav/files/clamav-daemon.init')
-rw-r--r-- | recipes/clamav/files/clamav-daemon.init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/clamav/files/clamav-daemon.init b/recipes/clamav/files/clamav-daemon.init index 6fd07146ea..b506ccadb3 100644 --- a/recipes/clamav/files/clamav-daemon.init +++ b/recipes/clamav/files/clamav-daemon.init @@ -28,6 +28,12 @@ case "$1" in stop) echo -n "Stopping $DESC: " start-stop-daemon -K -p $PID + for i in `seq 1 5`; do + if start-stop-daemon -p $PID -t -K >/dev/null 2>&1; then + break; + fi + sleep 1 + done ;; restart|force-reload) |