aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2018-11-26 17:50:52 -0800
committerBryn M. Reeves <bmr@redhat.com>2019-03-19 12:01:05 +0000
commit51c8f3c923ed448fa0400c4b7f82b8a608b3d614 (patch)
tree7b1753f500c583c123c6f86bb4c0dbd5dc19aea2
parent70f222deda7d13813f0df499b4011db7ea5a1ff6 (diff)
downloadsos-51c8f3c923ed448fa0400c4b7f82b8a608b3d614.tar.gz
[services/upstart] Cleanup and move commands to right plugin
Remove /sbin/ for service command so it runs on ubuntu. Move initctl command to upstart plugin Resolves: #1484 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/services.py7
-rw-r--r--sos/plugins/upstart.py3
2 files changed, 3 insertions, 7 deletions
diff --git a/sos/plugins/services.py b/sos/plugins/services.py
index 372e4342..56e0fce0 100644
--- a/sos/plugins/services.py
+++ b/sos/plugins/services.py
@@ -26,7 +26,7 @@ class Services(Plugin):
"/etc/rc.local"
])
if self.get_option('servicestatus'):
- self.add_cmd_output("/sbin/service --status-all")
+ self.add_cmd_output("service --status-all")
self.add_cmd_output([
"/sbin/runlevel",
"ls /var/lock/subsys"
@@ -46,9 +46,4 @@ class DebianServices(Services, DebianPlugin, UbuntuPlugin):
super(DebianServices, self).setup()
self.add_copy_spec("/etc/rc*.d")
- self.add_cmd_output("/sbin/initctl show-config",
- root_symlink="initctl")
- if self.get_option('servicestatus'):
- self.add_cmd_output("/sbin/initctl list")
-
# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/upstart.py b/sos/plugins/upstart.py
index 7d050a63..ff81d49d 100644
--- a/sos/plugins/upstart.py
+++ b/sos/plugins/upstart.py
@@ -24,7 +24,8 @@ class Upstart(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
'initctl --system list',
'initctl --system version',
'init --version',
- "ls -l /etc/init/"
+ "ls -l /etc/init/",
+ 'initctl show-config'
])
# Job Configuration Files