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
df365884
Commit
df365884
authored
Aug 10, 2010
by
Chris Withers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore ability to set sockname from command line
parent
a989d379
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/Zope2/Startup/zopectl.py
src/Zope2/Startup/zopectl.py
+8
-1
No files found.
src/Zope2/Startup/zopectl.py
View file @
df365884
...
@@ -122,6 +122,10 @@ class ZopeCtlOptions(ZDOptions):
...
@@ -122,6 +122,10 @@ class ZopeCtlOptions(ZDOptions):
# the command line option can set this.
# the command line option can set this.
program
=
None
program
=
None
# this indicates that no explict socket name has been provided.
# the command line option can set this.
sockname
=
None
# XXX Suppress using Zope's <eventlog> section to avoid using the
# XXX Suppress using Zope's <eventlog> section to avoid using the
# same logging for zdctl as for the Zope appserver. There still
# same logging for zdctl as for the Zope appserver. There still
# needs to be a way to set a logfile for zdctl.
# needs to be a way to set a logfile for zdctl.
...
@@ -178,7 +182,10 @@ class ZopeCtlOptions(ZDOptions):
...
@@ -178,7 +182,10 @@ class ZopeCtlOptions(ZDOptions):
self
.
program
=
config
.
runner
.
program
self
.
program
=
config
.
runner
.
program
else
:
else
:
self
.
program
=
[
os
.
path
.
join
(
self
.
directory
,
"bin"
,
"runzope"
)]
self
.
program
=
[
os
.
path
.
join
(
self
.
directory
,
"bin"
,
"runzope"
)]
if
config
.
runner
and
config
.
runner
.
socket_name
:
if
self
.
sockname
:
# set by command line option
pass
elif
config
.
runner
and
config
.
runner
.
socket_name
:
self
.
sockname
=
config
.
runner
.
socket_name
self
.
sockname
=
config
.
runner
.
socket_name
else
:
else
:
self
.
sockname
=
os
.
path
.
join
(
self
.
clienthome
,
"zopectlsock"
)
self
.
sockname
=
os
.
path
.
join
(
self
.
clienthome
,
"zopectlsock"
)
...
...
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