summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Chkconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/Chkconfig.py')
-rw-r--r--src/lib/Client/Tools/Chkconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py
index 7bf176f2c..12d1a3444 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -4,6 +4,8 @@
"""This is chkconfig support."""
__revision__ = '$Revision$'
+import os
+
import Bcfg2.Client.Tools
import Bcfg2.Client.XML
@@ -14,6 +16,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
__execs__ = ['/sbin/chkconfig']
__handles__ = [('Service', 'chkconfig')]
__req__ = {'Service': ['name', 'status']}
+ os.environ['LANG'] = 'C'
def get_svc_command(self, service, action):
return "/sbin/service %s %s" % (service.get('name'), action)