Skip to content

Commit

Permalink
services: show non common unit file states as we get them from the sy…
Browse files Browse the repository at this point in the history
…stem API

Previously we were showing only Enabled/Disabled/Static/Masked states.
There are more though, and the above are also sub categorized.

The non common states will not be translated for now, so this will need
a followup.

Closes #13995
  • Loading branch information
KKoukiou authored and martinpitt committed Apr 29, 2020
1 parent 3724278 commit eef69ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/systemd/services/services.jsx
Expand Up @@ -537,8 +537,8 @@ class ServicesPage extends React.Component {
} else if (unit.UnitFileState && unit.UnitFileState.indexOf('static') == 0) {
unit.AutomaticStartup = _("Static");
unit.AutomaticStartupKey = 'static';
} else if (unit.UnitFileState && unit.UnitFileState.indexOf('masked') == 0) {
unit.AutomaticStartup = _("Masked");
} else if (unit.UnitFileState) {
unit.AutomaticStartup = unit.UnitFileState;
}

if (load_state !== "" && load_state != "masked")
Expand Down

0 comments on commit eef69ee

Please sign in to comment.