aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/sos/plugins/xinetd.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sos/plugins/xinetd.py')
-rw-r--r--src/lib/sos/plugins/xinetd.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/sos/plugins/xinetd.py b/src/lib/sos/plugins/xinetd.py
index 715c831f..f5292fb5 100644
--- a/src/lib/sos/plugins/xinetd.py
+++ b/src/lib/sos/plugins/xinetd.py
@@ -15,13 +15,18 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import sos.plugintools
+import os
class xinetd(sos.plugintools.PluginBase):
"""xinetd information
"""
+ def checkenabled(self):
+ if self.cInfo["policy"].pkgByName("xinetd") or os.path.exists("/etc/xinetd.conf"):
+ return True
+ return False
+
def setup(self):
self.addCopySpec("/etc/xinetd.conf")
- self.addCopySpec("/etc/xinetd.d/*")
- self.collectExtOutput("/sbin/chkconfig --list xinetd")
+ self.addCopySpec("/etc/xinetd.d")
return