Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[config] Don't attempt to restart disabled services #944

Merged
merged 1 commit into from
Jun 12, 2020
Merged

[config] Don't attempt to restart disabled services #944

merged 1 commit into from
Jun 12, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Jun 12, 2020

When restarting services, don't attempt to restart a service if it is disabled/masked or the systemctl restart command will fail, causing the calling command (e.g., config load, config reload, config load_minigraph) to error out.

@jleveque jleveque merged commit a21e01a into sonic-net:master Jun 12, 2020
@jleveque jleveque deleted the dont_restart_disabled_services branch June 12, 2020 23:15
abdosi pushed a commit that referenced this pull request Jun 16, 2020
When restarting services, don't attempt to restart a service if it is disabled/masked or the `systemctl restart` command will fail, causing the calling command (e.g., `config load`, `config reload`, `config load_minigraph`) to error out.
jleveque added a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 20, 2020
- Ensure all features (services) are in the configured state when hostcfgd starts
- Better functionalization of code
- Also replace calls to deprecated `has_key()` method in `tacacs_server_handler()` and `tacacs_global_handler()` with `in` keyword.

This PR depends on sonic-net/sonic-utilities#944, otherwise `config load_minigraph` will fail when trying to restart disabled services.
jleveque added a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 24, 2020
When building the SONiC image, used systemd to mask all services which are set to "disabled" in init_cfg.json.

This PR depends on sonic-net/sonic-utilities#944, otherwise `config load_minigraph will fail when trying to restart disabled services.
abdosi pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 28, 2020
- Ensure all features (services) are in the configured state when hostcfgd starts
- Better functionalization of code
- Also replace calls to deprecated `has_key()` method in `tacacs_server_handler()` and `tacacs_global_handler()` with `in` keyword.

This PR depends on sonic-net/sonic-utilities#944, otherwise `config load_minigraph` will fail when trying to restart disabled services.
abdosi pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 28, 2020
When building the SONiC image, used systemd to mask all services which are set to "disabled" in init_cfg.json.

This PR depends on sonic-net/sonic-utilities#944, otherwise `config load_minigraph will fail when trying to restart disabled services.
abdosi pushed a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
When restarting services, don't attempt to restart a service if it is disabled/masked or the `systemctl restart` command will fail, causing the calling command (e.g., `config load`, `config reload`, `config load_minigraph`) to error out.
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
 [201911][thermal control] Backport changes from master branch (sonic-net#929)
     [201911][config] Support abbreviation (sonic-net#933)
       Add 'hw-management-generate-dump.sh' to 'show techsupport'
       command (sonic-net#934)
       [fwutil]: Update fwutil to v2.0.0.0. (sonic-net#942)
       Fixes bug for PFCWD feature parameters (sonic-net#838)
     Fixed fast-reboot for BFN platform (sonic-net#871)
     [config] Add 'interface transceiver' subgroup with 'lpmode' and
     'reset' subcommands (sonic-net#904)
      [warm-reboot]: added pre-check for ISSU file (sonic-net#915)
       [config] Don't attempt to restart disabled services (sonic-net#944)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants