summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Chkconfig.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-01-23 02:57:34 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-01-23 02:57:34 +0000
commit154c97c06501ef66e0a103644731ed53d1096fc3 (patch)
treeac1f97249e4209e0dc49a312d87b9b674faa6ee0 /src/lib/Client/Tools/Chkconfig.py
parentf7f0b49a8d6e7ffef6690184bf083a678dc2e5fb (diff)
downloadbcfg2-154c97c06501ef66e0a103644731ed53d1096fc3.tar.gz
bcfg2-154c97c06501ef66e0a103644731ed53d1096fc3.tar.bz2
bcfg2-154c97c06501ef66e0a103644731ed53d1096fc3.zip
Simplify service configuration; make all services use common restart framework
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5040 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/Chkconfig.py')
-rw-r--r--src/lib/Client/Tools/Chkconfig.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py
index ae3beaecb..5f867ee2d 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -13,6 +13,9 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
__handles__ = [('Service', 'chkconfig')]
__req__ = {'Service': ['name', 'status']}
+ def get_svc_command(self, service, action):
+ return "/sbin/service %s %s" % (service.get('name'), action)
+
def VerifyService(self, entry, _):
'''Verify Service status for entry'''
try:
@@ -44,7 +47,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
else:
status = (len(onlevels) == 0)
- if entry.get('supervised', 'false') == 'true':
+ if entry.get('mode', 'default') == 'supervised':
pstatus, pout = self.cmd.run('/sbin/service %s status' % \
entry.get('name'))
if pstatus: