summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-12-14 19:50:22 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-12-14 19:50:22 +0000
commite8c25ccfae3748adc471f0bf1cd2fc5a4dbab028 (patch)
treeac63aeb83025bdd377b7296a3a9568e2c7b84b47 /src/lib/Client/Tools
parent991ab03ffe8fa605b9ebb05836b320388f7223ce (diff)
downloadbcfg2-e8c25ccfae3748adc471f0bf1cd2fc5a4dbab028.tar.gz
bcfg2-e8c25ccfae3748adc471f0bf1cd2fc5a4dbab028.tar.bz2
bcfg2-e8c25ccfae3748adc471f0bf1cd2fc5a4dbab028.zip
Fix legacy service reactivation
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2596 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r--src/lib/Client/Tools/SMF.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/SMF.py b/src/lib/Client/Tools/SMF.py
index 90cac6e24..598fbe6cf 100644
--- a/src/lib/Client/Tools/SMF.py
+++ b/src/lib/Client/Tools/SMF.py
@@ -70,7 +70,7 @@ class SMF(Bcfg2.Client.Tools.Tool):
(entry.get('FMRI')))[0]
else:
if entry.get('FMRI').startswith('lrc'):
- loc = entry.get("FMRI")[4:].replace('_', ',')
+ loc = entry.get("FMRI")[4:].replace('_', '.')
try:
os.stat(loc.replace('/S', '/Disabled.'))
self.logger.debug("Renaming file %s to %s" % \
@@ -110,7 +110,7 @@ class SMF(Bcfg2.Client.Tools.Tool):
else:
if entry.get('status') == 'on':
self.logger.info("Restarting smf service %s" % (entry.get("FMRI")))
- self.cmd.run("svcadm restart %s" % (entry.get("FMRI")))
+ self.cmd.run("/usr/sbin/svcadm restart %s" % (entry.get("FMRI")))
else:
- self.cmd.run("svcadm disable %s" % (entry.get("FMRI")))
+ self.cmd.run("/usr/sbin/svcadm disable %s" % (entry.get("FMRI")))