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
f27f64d2
Commit
f27f64d2
authored
Oct 10, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Did a bit of cleanup and turned into STX (for Zope Book).
parent
b4058b6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
29 deletions
+27
-29
doc/SIGNALS.txt
doc/SIGNALS.txt
+27
-29
No files found.
doc/SIGNALS.txt
View file @
f27f64d2
Signals are a posix inter-process communications mechanism.
If you are using Windows then this documentation is not
for you.
Signals (POSIX only)
Zope responds to signals which are sent to the process id
written to the file /path/to/var/Z2.pid.
Signals are a POSIX inter-process communications mechanism.
If you are using Windows then this documentation does not apply.
SIGHUP - close open database connections and sockets,
then restart the server process. The common
idiom for restarting a Zope server is
kill -SIGHUP `cat /path/to/var/z2.pid`
Zope responds to signals which are sent to the process id
specified in the file 'ZOPE_HOME/var/Z2.pid'::
SIGTERM - close open database connections and sockets,
then shut down. The default stop script uses
kill -SIGTERM `cat /path/to/var/Z2.pid`
SIGHUP - close open database connections, then restart the server
process. The common idiom for restarting a Zope server is:
SIGUSR2 - close and re-open all Zope log files (z2.log,
event log, detailed log.) The common idiom
after rotating Zope log files is
kill -SIGUSR2 `cat /path/to/var/z2.pid`
SIGINT - same as SIGTERM
kill -HUP `cat ZOPE_HOME/var/z2.pid`
SIGTERM - close open database connections then shut down. The common
idiom for shutting down Zope is:
kill -TERM `cat ZOPE_HOME/var/Z2.pid`
Exactly which process has its pid written to this file
depends on whether Zope is run under the management
process. If using a management process (the default)
then its pid is recorded here. Relevant signals sent to
the management process are forwarded on to the server
process. (Specifically, it forwards all those signals
listed above, plus SIGQUIT and SIGUSR1)
If not using a management process (-Z0 on the z2.py
command line) then the server process records its own
pid here.
SIGINT - same as SIGTERM
SIGUSR2 - close and re-open all Zope log files (z2.log, event log,
detailed log.) The common idiom after rotating Zope log files
is:
kill -USR2 `cat ZOPE_HOME var/z2.pid`
The process id written to the 'z2.pid' file depends on whether Zope
is run under the 'zdaemon' management process. If Zope is run under
a management process (as it is by default) then the pid of the
management process is recorded here. Relevant signals sent to the
management process are forwarded on to the server process.
Specifically, it forwards all those signals listed above, plus
SIGQUIT and SIGUSR1. If Zope is not using a management process (-Z0
on the z2.py command line), the server process records its own pid
into 'z2.pid', but all signals work the same way.
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