Use a while loop to speed up stops and restarts
If the TERM signal takes less than 5s (it will probably take
less than 1.5s), then you should see a reasonable speed boost
when stopping/restarting the daemon.