diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2019-09-24 16:25:41 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-09-24 16:25:41 +0100 |
commit | c6f3ed7e99c2f3b4982a1d3460dfa56246a3d752 (patch) | |
tree | 99df238457a167c0d3a0756084c8555ce72bc867 | |
parent | ba0800c6f05c505c974160af617868341318955f (diff) | |
download | sos-c6f3ed7e99c2f3b4982a1d3460dfa56246a3d752.tar.gz |
[apache] use add_service_status()
Related: #1667
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/apache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/apache.py b/sos/plugins/apache.py index a96374fe..f3ee68d5 100644 --- a/sos/plugins/apache.py +++ b/sos/plugins/apache.py @@ -60,7 +60,7 @@ class RedHatApache(Apache, RedHatPlugin): self.add_forbidden_path("/etc/httpd/conf/password.conf") - self.add_cmd_output('systemctl status httpd') + self.add_service_status('httpd') # collect only the current log set by default self.add_copy_spec([ @@ -100,7 +100,7 @@ class DebianApache(Apache, DebianPlugin, UbuntuPlugin): "/etc/default/apache2" ]) - self.add_cmd_output('systemctl status apache2') + self.add_service_status('apache2') # collect only the current log set by default self.add_copy_spec([ |