aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/anacron.py26
-rw-r--r--sos/plugins/system.py1
2 files changed, 26 insertions, 1 deletions
diff --git a/sos/plugins/anacron.py b/sos/plugins/anacron.py
new file mode 100644
index 00000000..e5019a43
--- /dev/null
+++ b/sos/plugins/anacron.py
@@ -0,0 +1,26 @@
+
+### This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
+import os
+
+class Anacron(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
+
+ plugin_name = 'anaconda'
+
+ packages = ('anacron',)
+
+ def setup(self):
+ self.add_copy_spec("/etc/anacrontab")
diff --git a/sos/plugins/system.py b/sos/plugins/system.py
index 7f8efe05..9db5f51f 100644
--- a/sos/plugins/system.py
+++ b/sos/plugins/system.py
@@ -24,7 +24,6 @@ class RedHatSystem(System, RedHatPlugin):
self.add_copy_specs([
"/proc/sys",
"/etc/cron*",
- "/etc/anacrontab",
"/var/spool/cron*",
"/var/log/cron*",
"/etc/syslog.conf",