Skip to content

Commit 92d0744

Browse files
vivekrnvqiluo-msft
authored andcommitted
[config reload] Removed job-mode for sonic.target restart (sonic-net#1820)
#### What I did As discussed in this PR sonic-net#1814 (comment), only the stop.job should have job-mode set to replace irreversibly. Otherwise, simultaneous config reloads in the quick succession, can lead to the behavior. Although ,when the restart job (and all the other dependent jobs) are finished and is taken out of systemd's job queue, the next stop job will not be cancelled.
1 parent c28fb22 commit 92d0744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def _reset_failed_services():
716716

717717
def _restart_services():
718718
click.echo("Restarting SONiC target ...")
719-
clicommon.run_command("sudo systemctl restart sonic.target --job-mode replace-irreversibly")
719+
clicommon.run_command("sudo systemctl restart sonic.target")
720720

721721
try:
722722
subprocess.check_call("sudo monit status", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

0 commit comments

Comments
 (0)