Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
40c1143f
Commit
40c1143f
authored
Jun 13, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added fix to avoid overwriting service start params at install time if
they already exist.
parent
b3593492
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
ZServer/ZService.py
ZServer/ZService.py
+5
-2
lib/python/ZServer/ZService.py
lib/python/ZServer/ZService.py
+5
-2
No files found.
ZServer/ZService.py
View file @
40c1143f
...
...
@@ -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__'
:
...
...
lib/python/ZServer/ZService.py
View file @
40c1143f
...
...
@@ -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__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment