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
980df41f
Commit
980df41f
authored
Apr 10, 2009
by
Chris Withers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make runzope -h work onc the new zdaemon release is used.
parent
e99aa8b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
src/Zope2/Startup/options.py
src/Zope2/Startup/options.py
+24
-1
src/Zope2/Startup/run.py
src/Zope2/Startup/run.py
+2
-2
No files found.
src/Zope2/Startup/options.py
View file @
980df41f
...
...
@@ -20,7 +20,30 @@ import zdaemon.zdoptions
class
ZopeOptions
(
zdaemon
.
zdoptions
.
ZDOptions
):
"""The Zope zdaemon runner script.
Usage: python Zope2/run.py [-C URL][-h] [zdrun-options] [action [arguments]]
Options:
-C/--configure URL -- configuration file or URL
-h/--help -- print usage message and exit
-b/--backoff-limit SECONDS -- set backoff limit to SECONDS (default 10)
-d/--daemon -- run as a proper daemon; fork a subprocess, close files etc.
-f/--forever -- run forever (by default, exit when backoff limit is exceeded)
-h/--help -- print this usage message and exit
-s/--socket-name SOCKET -- Unix socket name for client (default "zdsock")
-u/--user USER -- run as this user (or numeric uid)
-m/--umask UMASK -- use this umask for daemon subprocess (default is 022)
-x/--exit-codes LIST -- list of fatal exit codes (default "0,2")
-z/--directory DIRECTORY -- directory to chdir to when using -d (default off)
action [arguments] -- see below
Actions are commands like "start", "stop" and "status". If -i is
specified or no action is specified on the command line, a "shell"
interpreting actions typed interactively is started (unless the
configuration option default_to_interactive is set to false). Use the
action "help" to find out about available actions.
"""
schemadir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
schemafile
=
"zopeschema.xml"
src/Zope2/Startup/run.py
View file @
980df41f
...
...
@@ -43,9 +43,9 @@ def _setconfig(configfile=None):
opts
=
options
.
ZopeOptions
()
if
configfile
:
opts
.
configfile
=
configfile
opts
.
realize
(
doc
=
"Sorry, no option docs yet."
,
raise_getopt_errs
=
0
)
opts
.
realize
(
raise_getopt_errs
=
0
)
else
:
opts
.
realize
(
doc
=
"Sorry, no option docs yet."
)
opts
.
realize
()
handlers
.
handleConfig
(
opts
.
configroot
,
opts
.
confighandlers
)
import
App.config
...
...
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