caslib/util.py | 27 ++--------------------
man/en/cas.conf.5 | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 24 deletions(-)
New commits:
commit 564be236aa7bf4ca5e88332b48ec17c0f6dd35cd
Author: adam stokes <astokes(a)fedoraproject.org>
Date: Mon Apr 26 12:23:00 2010 -0400
Merge a few changes from devel
diff --git a/caslib/util.py b/caslib/util.py
index 3abbeab..5346de4 100644
--- a/caslib/util.py
+++ b/caslib/util.py
@@ -11,8 +11,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <
http://www.gnu.org/licenses/>.
-import cPickle
-import commands
import os
import re
import sys
@@ -26,7 +24,7 @@ else:
import shutil
def genprint(txt):
- sys.stdout.write("[.cas.] :: %s\n" % (txt,))
+ sys.stdout.write(":: %s\n" % (txt,))
sys.stdout.flush()
class Logging(object):
@@ -54,12 +52,12 @@ class Logging(object):
def debug(self, msg):
if self.debug_level == 'DEBUG':
- self.log.debug("[.cas.][debug] :: %s" % (msg,))
+ self.log.debug("debug :: %s" % (msg,))
def info(self, msg):
""" function to print procedure
"""
- self.log.info("[.cas.] :: %s" % (msg,))
+ self.log.info(":: %s" % (msg,))
class UtilException(Exception): pass
@@ -102,25 +100,6 @@ class UtilBase(object):
os.chmod(fn, newmode)
return
- def save(self, obj, fname):
- ''' push data to pickle
- '''
- FILE=open(fname, 'w')
- cPickle.dump(obj, FILE)
- FILE.close()
- return
-
- def load(self, fname):
- ''' grab data from pickle file
- '''
- if os.path.isfile(fname):
- FILE=open(fname, 'r')
- out=cPickle.load(FILE)
- FILE.close()
- else:
- raise UtilException("%s : Unable to locate/load file." % (fname,))
- return out
-
def getElfArch(self, debug):
""" determine machine type for ELF file
"""
diff --git a/man/en/cas.conf.5 b/man/en/cas.conf.5
new file mode 100644
index 0000000..10a301e
--- /dev/null
+++ b/man/en/cas.conf.5
@@ -0,0 +1,64 @@
+.TH "cas.conf" "5" "CAS" "cas configuration
file"
+.SH NAME
+cas.conf \- Cas configuration file.
+.SH DESCRIPTION
+.sp
+cas.conf is the configuration file for cas.
+.SH [settings] OPTIONS
+.sp
+.in
+.B casuser
+User to run cas as.
+.in
+.B sshkey
+Used when deploying cas over several systems via ssh
+.in
+.B kernels
+Location of debug kernels
+.in
+.B rpmFilter
+Regular expression syntax when searching for kernels
+.in
+.B debugs
+Temporary storage for extracting debug information
+.in
+.B debugLevel
+Debug level for logging (DEBUG, INFO)
+.in
+.B workDirectory
+Work directory
+.in
+.B smtphost
+Mail server for notifications
+.in
+.B database
+Locate for database
+.in
+.B notify
+Receive notifications of core progress and result
+.SH [maintenance] OPTIONS
+.sp
+.in
+.B purgeLimit
+Time frame to keep data (days)
+.in
+.B autoPurge
+Autopurge data when cas-admin is run
+.SH [advanced] OPTIONS
+.sp
+.in
+.B crash_32
+Used when running a x86_64 and wanting to analyze a x86 core
+.in
+.B buffersize
+Buffersize for reading in a core file
+.SH FILES
+.sp
+/etc/cas.conf
+.SH "SEE ALSO"
+.sp
+cas(1)
+.in
+cas-admin(1)
+.in
+Full documentation located in /usr/share/doc/cas-<version>.