diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2019-02-15 16:03:53 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-04 16:41:04 +0000 |
commit | 7b9284e948f2e9076c92741ed5b95fec7934af8d (patch) | |
tree | 86ab7e6ac6dc6690b3a7e4068671fe2fc2fbd82a /po/gu.po | |
parent | f3896c51c256f6effaaeb4dcec14130556dd9ce5 (diff) | |
download | sos-7b9284e948f2e9076c92741ed5b95fec7934af8d.tar.gz |
[policy|plugin] Add 'is_running' check for services
Adds a method to the InitSystem class used by policies and plugins to
check if a given service name is running. Plugins can make use of this
through the new self.service_is_running() method.
For policies that use the base InitSystem class, this method will always
return True as the service_is_running() method is likely to be used when
determining if we should run commands or not, and we do not want to
incorrectly stop running those commands where they would collect
meaningful output today.
The SystemD init system for policies properly checks to see if the given
service is active or not when reporting is the service is running.
Resolves: #1567
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'po/gu.po')
0 files changed, 0 insertions, 0 deletions