summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-29 20:54:33 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-29 20:54:33 +0000
commitfa29a2b8704c50baf4779b24ec4f6c76b78e7f27 (patch)
treef6733bf0367788246084409af9552117f1a45691 /src
parentd712ddcb33fdaad922a06b8bbd8301240796fe7c (diff)
downloadbcfg2-fa29a2b8704c50baf4779b24ec4f6c76b78e7f27.tar.gz
bcfg2-fa29a2b8704c50baf4779b24ec4f6c76b78e7f27.tar.bz2
bcfg2-fa29a2b8704c50baf4779b24ec4f6c76b78e7f27.zip
More Solaris fixes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2147 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Solaris.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/Client/Solaris.py b/src/lib/Client/Solaris.py
index b67e45142..c7ddf970c 100644
--- a/src/lib/Client/Solaris.py
+++ b/src/lib/Client/Solaris.py
@@ -79,7 +79,7 @@ class ToolsetImpl(Toolset):
self.ptypes[match.group('name')] = 'encap'
else:
print "Failed to split name %s" % pkg
- print self.installed.keys()
+ #print self.installed.keys()
def VerifyService(self, entry):
'''Verify Service status for entry'''
@@ -133,10 +133,10 @@ class ToolsetImpl(Toolset):
else:
if entry.get("FMRI").startswith('lrc'):
try:
- loc = entry.get("FMRI")[4:].replace('_', ',')
+ loc = entry.get("FMRI")[4:].replace('_', '.')
self.logger.debug("Renaming file %s to %s" % \
- (loc, loc.replace('/S', '/DISABLED')))
- os.rename(loc, loc.replace('/S', '/DISABLED'))
+ (loc, loc.replace('/S', '/DISABLED.S')))
+ os.rename(loc, loc.replace('/S', '/DISABLED.S'))
return True
except OSError:
self.logger.error("Failed to rename init script %s" % (loc))
@@ -151,12 +151,12 @@ class ToolsetImpl(Toolset):
try:
stat(loc.replace('/S', '/Disabled.'))
self.logger.debug("Renaming file %s to %s" % \
- (loc.replace('/S', '/DISABLED'), loc))
- os.rename(loc.replace('/S', '/DISABLED'), loc)
+ (loc.replace('/S', '/DISABLED.S'), loc))
+ os.rename(loc.replace('/S', '/DISABLED.S'), loc)
cmdrc = 0
except:
self.logger.debug("Failed to rename %s to %s" \
- % (loc.replace('/S', '/DISABLED'), loc))
+ % (loc.replace('/S', '/DISABLED.S'), loc))
cmdrc = 1
else:
cmdrc = self.saferun("/usr/sbin/svcadm enable -r %s" % (entry.attrib['FMRI']))[0]