aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-04-26 18:04:51 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-04-26 18:04:51 +0100
commitffd1284609373a2312387cffe7ca8bd11b85baf0 (patch)
tree5181781a128b69db0bb599924e2ca17fc60fffcc
parentbf0e4ac40c05329caab960d001143c9a31861f8a (diff)
downloadsos-ffd1284609373a2312387cffe7ca8bd11b85baf0.tar.gz
Remove anacron data from system plug-in
The system plug-in is a dumping ground of all sorts of random bits and pieces. Move the anacron stuff to its own file.
-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",