aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/apache.py4
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([