aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-01-10 08:38:43 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-01-16 15:42:45 +0000
commit45d4ad06c1a917b189b041471e2a54366ec50d76 (patch)
tree6aab3763c1fe6e6a704f0cc8e89e974be42871f2
parent168479d75c3b748f5411a1d0c6c507d9e9a31288 (diff)
downloadsos-45d4ad06c1a917b189b041471e2a54366ec50d76.tar.gz
[autofs] service status shouldnt rely on init.d
Replace init.d call by more generic "service" command applicable also to systemd. Resolves: #1183 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/autofs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/autofs.py b/sos/plugins/autofs.py
index 3cb83673..57989f69 100644
--- a/sos/plugins/autofs.py
+++ b/sos/plugins/autofs.py
@@ -49,7 +49,7 @@ class Autofs(Plugin):
def setup(self):
self.add_copy_spec("/etc/auto*")
- self.add_cmd_output("/etc/init.d/autofs status")
+ self.add_cmd_output("service autofs status")
self.add_cmd_output("automount -m")
if self.checkdebug():
self.add_copy_spec(self.getdaemondebug())