Restart nginx after upgrade
When processes are asked to start, either them or if they are running,
reload their configs.
@@ -308,6 +308,12 @@ class ServiceConfig(CommandLine):
for service in self.CONTROLLED_SERVICES:
controller = ServiceControl.create(service)
+ if controller.running:
+ if service.endswith('.target'):
+ error = False
+ else:
+ error = controller.reload()
+ else:
error = controller.start()
if error:
log.error(error)
