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
4553e448
Commit
4553e448
authored
Apr 30, 2007
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2318: Allow override of zopectl's control socket in zope.conf
parent
de3d8323
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
doc/CHANGES.txt
doc/CHANGES.txt
+7
-0
lib/python/Zope2/Startup/zopectl.py
lib/python/Zope2/Startup/zopectl.py
+8
-1
lib/python/Zope2/Startup/zopeschema.xml
lib/python/Zope2/Startup/zopeschema.xml
+11
-0
No files found.
doc/CHANGES.txt
View file @
4553e448
...
@@ -4,6 +4,13 @@ Zope Changes
...
@@ -4,6 +4,13 @@ Zope Changes
Change information for previous versions of Zope can be found in the
Change information for previous versions of Zope can be found in the
file HISTORY.txt.
file HISTORY.txt.
After Zope 2.8.9
Bugs fixed
- Collector #2318: Allow override of zopectl's control socket in
zope.conf
Zope 2.8.9 (2006/03/25)
Zope 2.8.9 (2006/03/25)
Bugs fixed
Bugs fixed
...
...
lib/python/Zope2/Startup/zopectl.py
View file @
4553e448
...
@@ -26,6 +26,7 @@ Options:
...
@@ -26,6 +26,7 @@ Options:
-l/--logfile -- log file to be read by logtail command
-l/--logfile -- log file to be read by logtail command
-u/--user -- run the daemon manager program as this user (or numeric id)
-u/--user -- run the daemon manager program as this user (or numeric id)
-m/--umask -- provide octal umask for files created by the managed process
-m/--umask -- provide octal umask for files created by the managed process
-s/--socket-name -- socket between zopectl and zdrun
action [arguments] -- see below
action [arguments] -- see below
Actions are commands like "start", "stop" and "status". If -i is
Actions are commands like "start", "stop" and "status". If -i is
...
@@ -45,6 +46,7 @@ import Zope2.Startup
...
@@ -45,6 +46,7 @@ import Zope2.Startup
from
zdaemon.zdctl
import
ZDCmd
from
zdaemon.zdctl
import
ZDCmd
from
zdaemon.zdoptions
import
ZDOptions
from
zdaemon.zdoptions
import
ZDOptions
from
ZConfig.components.logger.handlers
import
FileHandlerFactory
from
ZConfig.components.logger.handlers
import
FileHandlerFactory
from
ZConfig.datatypes
import
existing_dirpath
def
string_list
(
arg
):
def
string_list
(
arg
):
...
@@ -86,6 +88,8 @@ class ZopeCtlOptions(ZDOptions):
...
@@ -86,6 +88,8 @@ class ZopeCtlOptions(ZDOptions):
self
.
add
(
"user"
,
"runner.user"
,
"u:"
,
"user="
)
self
.
add
(
"user"
,
"runner.user"
,
"u:"
,
"user="
)
self
.
add
(
"prompt"
,
"runner.prompt"
,
default
=
"zopectl>"
)
self
.
add
(
"prompt"
,
"runner.prompt"
,
default
=
"zopectl>"
)
self
.
add
(
"umask"
,
"runner.umask"
,
"m:"
,
"umask="
)
self
.
add
(
"umask"
,
"runner.umask"
,
"m:"
,
"umask="
)
self
.
add
(
"sockname"
,
"runner.socket_name"
,
"s:"
,
"socket-name="
,
existing_dirpath
,
default
=
None
)
def
realize
(
self
,
*
args
,
**
kw
):
def
realize
(
self
,
*
args
,
**
kw
):
ZDOptions
.
realize
(
self
,
*
args
,
**
kw
)
ZDOptions
.
realize
(
self
,
*
args
,
**
kw
)
...
@@ -116,6 +120,9 @@ class ZopeCtlOptions(ZDOptions):
...
@@ -116,6 +120,9 @@ 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
:
self
.
sockname
=
config
.
runner
.
socket_name
else
:
self
.
sockname
=
os
.
path
.
join
(
self
.
clienthome
,
"zopectlsock"
)
self
.
sockname
=
os
.
path
.
join
(
self
.
clienthome
,
"zopectlsock"
)
self
.
python
=
sys
.
executable
self
.
python
=
sys
.
executable
self
.
zdrun
=
os
.
path
.
join
(
os
.
path
.
dirname
(
zdaemon
.
__file__
),
self
.
zdrun
=
os
.
path
.
join
(
os
.
path
.
dirname
(
zdaemon
.
__file__
),
...
...
lib/python/Zope2/Startup/zopeschema.xml
View file @
4553e448
...
@@ -187,6 +187,17 @@
...
@@ -187,6 +187,17 @@
</description>
</description>
</key>
</key>
<key
name=
"socket-name"
datatype=
"existing-dirpath"
required=
"no"
>
<description>
Command-line option: -s or --socket-name.
The pathname of the Unix domain socket used for communication
between zopectl.py and zdrun.py. The default is relative to the
current directory in which zdctl.py and zdrun.py are started.
You want to specify an absolute pathname here.
</description>
</key>
</sectiontype>
</sectiontype>
<sectiontype
name=
"zodb_db"
datatype=
".ZopeDatabase"
<sectiontype
name=
"zodb_db"
datatype=
".ZopeDatabase"
...
...
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