Skip to content

Commit

Permalink
[config reload] Fix config reload failure due to sonic.target job can…
Browse files Browse the repository at this point in the history
…cellation (#1814)

#### What I did

Fixes #7508
  • Loading branch information
vivekrnv authored Sep 13, 2021
1 parent 2b12aad commit 2416175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def _stop_services():
pass

click.echo("Stopping SONiC target ...")
clicommon.run_command("sudo systemctl stop sonic.target")
clicommon.run_command("sudo systemctl stop sonic.target --job-mode replace-irreversibly")


def _get_sonic_services():
Expand All @@ -706,7 +706,7 @@ def _reset_failed_services():

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

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

0 comments on commit 2416175

Please sign in to comment.