summaryrefslogtreecommitdiff
path: root/win32/OpenERPServerService.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2012-11-30 17:50:46 +0100
committerChristophe Simonis <chs@openerp.com>2012-11-30 17:50:46 +0100
commit3ff3f1f87fd50d363a1a0b502a34208966b24e0a (patch)
tree6a79a7e9cac2e261534adb1c65bfc542a79cc399 /win32/OpenERPServerService.py
parent050f65c21e9a5ef5af919158c448b1666bf14bb4 (diff)
[FIX] win32 service: configure service via sc.exe
bzr revid: chs@openerp.com-20121130165046-l1ezj4ykrhnyfzjp
Diffstat (limited to 'win32/OpenERPServerService.py')
-rw-r--r--win32/OpenERPServerService.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/OpenERPServerService.py b/win32/OpenERPServerService.py
index ce7e21d50af..f2a6007d118 100644
--- a/win32/OpenERPServerService.py
+++ b/win32/OpenERPServerService.py
@@ -75,7 +75,7 @@ def option_handler(opts):
# configure the service to auto restart on failures...
service_name = OpenERPServerService._svc_name
- subprocess.call('sc failure %s reset= 0 actions= restart/0/restart/0/restart/0' % (service_name,))
+ subprocess.call(['sc', 'failure', service_name, 'reset=', '0', 'actions=', 'restart/0/restart/0/restart/0'])
# hscm = win32service.OpenSCManager(None, None, win32service.SC_MANAGER_ALL_ACCESS)
# try: