stop service before restarting container