Instead of restarting services, stop them and start. This
way we eliminate issue of 'locked' TCP ports.
This commit is contained in:
parent
d7afa5ad96
commit
3c2fa8b8b5
@ -220,7 +220,9 @@ def restart_on_change(restart_map):
|
||||
if checksums[path] != file_hash(path):
|
||||
restarts += restart_map[path]
|
||||
for service_name in list(OrderedDict.fromkeys(restarts)):
|
||||
service('restart', service_name)
|
||||
service('stop', service_name)
|
||||
for service_name in list(OrderedDict.fromkeys(restarts)):
|
||||
service('start', service_name)
|
||||
return wrapped_f
|
||||
return wrap
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user