aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-02-15 16:03:53 -0500
committerBryn M. Reeves <bmr@redhat.com>2019-03-04 16:41:04 +0000
commit7b9284e948f2e9076c92741ed5b95fec7934af8d (patch)
tree86ab7e6ac6dc6690b3a7e4068671fe2fc2fbd82a /man
parentf3896c51c256f6effaaeb4dcec14130556dd9ce5 (diff)
downloadsos-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 'man')
0 files changed, 0 insertions, 0 deletions