summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2012-11-30 17:12:10 +0100
committerChristophe Simonis <chs@openerp.com>2012-11-30 17:12:10 +0100
commitb2099e17bbe4442b8353af9a72d73131404e9f9b (patch)
tree6e71046f04fe67891b0b8697f7945f7f92e73cd0 /win32
parent7d73d767b18cb91da51ca7a71904716620f678b6 (diff)
[zen] Mind your words, they are important.
bzr revid: chs@openerp.com-20121130161210-3ih3bnx4oc9gv2w3
Diffstat (limited to 'win32')
-rw-r--r--win32/OpenERPServerService.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/win32/OpenERPServerService.py b/win32/OpenERPServerService.py
index 3f86c40aa4b..ce7e21d50af 100644
--- a/win32/OpenERPServerService.py
+++ b/win32/OpenERPServerService.py
@@ -36,7 +36,7 @@ except ImportError:
raise
from setup import generate_files
generate_files()
- import meta
+ import meta # noqa
class OpenERPServerService(win32serviceutil.ServiceFramework):
# required info
@@ -74,9 +74,8 @@ class OpenERPServerService(win32serviceutil.ServiceFramework):
def option_handler(opts):
# configure the service to auto restart on failures...
service_name = OpenERPServerService._svc_name
- restart_msg = "Restarting %s" % (OpenERPServerService._svc_display_name_,)
- subprocess.call('sc failure %s reset= 0 reboot= %r actions= reboot/0/reboot/0/reboot/0' % (service_name, restart_msg))
+ subprocess.call('sc failure %s reset= 0 actions= restart/0/restart/0/restart/0' % (service_name,))
# hscm = win32service.OpenSCManager(None, None, win32service.SC_MANAGER_ALL_ACCESS)
# try: