Commit 40c1143f authored by 's avatar

Added fix to avoid overwriting service start params at install time if

they already exist.
parent b3593492
......@@ -298,8 +298,11 @@ class ZServerService(win32serviceutil.ServiceFramework):
def set_start_command(value):
"sets the ZServer start command"
win32serviceutil.SetServiceCustomOption(ZServerService,'start',value)
"sets the ZServer start command if the start command is not already set"
current=win32serviceutil.GetServiceCustomOption(ZServerService,
'start', None)
if current is None:
win32serviceutil.SetServiceCustomOption(ZServerService,'start',value)
if __name__=='__main__':
......
......@@ -298,8 +298,11 @@ class ZServerService(win32serviceutil.ServiceFramework):
def set_start_command(value):
"sets the ZServer start command"
win32serviceutil.SetServiceCustomOption(ZServerService,'start',value)
"sets the ZServer start command if the start command is not already set"
current=win32serviceutil.GetServiceCustomOption(ZServerService,
'start', None)
if current is None:
win32serviceutil.SetServiceCustomOption(ZServerService,'start',value)
if __name__=='__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment