Skip to content

Commit ce11545

Browse files
authored
[config reload] Removed job-mode for sonic.target restart (sonic-net#1820)
#### What I did As discussed in this PR sonic-net/sonic-utilities#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 f76f672 commit ce11545

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
@@ -706,7 +706,7 @@ def _reset_failed_services():
706706

707707
def _restart_services():
708708
click.echo("Restarting SONiC target ...")
709-
clicommon.run_command("sudo systemctl restart sonic.target --job-mode replace-irreversibly")
709+
clicommon.run_command("sudo systemctl restart sonic.target")
710710

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

0 commit comments

Comments
 (0)