Avoid unnecessary service restarts.