diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-07-24 17:40:25 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-09-03 16:57:15 +0100 |
commit | 6db459e2b21a798d93cc79e705e8e02f1bbd24c1 (patch) | |
tree | 88313641c4e2e5a2a8b0bfe6620d8f7ac751225d /po/ur.po | |
parent | 0cddb4c820d39cae8bf6681c644fa353b0c20800 (diff) | |
download | sos-6db459e2b21a798d93cc79e705e8e02f1bbd24c1.tar.gz |
[Policies|Plugins] Add services member
Adds a services member to facilitate plugin enablement. This is tied to
a new InitSystem class that gets attached to policies. The InitSystem
class is used to determine services that are present on the system and
what those service statuses currently are (e.g. enabled/disable).
Plugins can now specify a set of services to enable the plugin on if
that service exists on the system, similar to the file, command, and
package checks.
Additionally, the Plugin class now has methods to check on service
states, and make decisions based off of. For example:
def setup(self):
if self.is_service('foobar'):
self.add_cmd_output('barfoo')
Currently, only systemd has actual functionality for this. The base
InitSystem inherited by policies by default will always return False for
service checks, thus resulting in the same behavior as before this
change.
The Red Hat family of distributions has been set to systemd, as all
current versions of those distributions use systemd.
Closes: #83
Resolves: #1387
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'po/ur.po')
0 files changed, 0 insertions, 0 deletions