[Zodb-checkins] CVS: ZODB3/Doc/ZEO - SIGNALS.txt:1.3.2.1

Guido van Rossum guido@python.org
Wed, 30 Oct 2002 13:43:49 -0500


Update of /cvs-repository/ZODB3/Doc/ZEO
In directory cvs.zope.org:/tmp/cvs-serv13849

Added Files:
      Tag: ZODB3-3_1-branch
	SIGNALS.txt 
Log Message:
Document signal behavior.  (Sorry, this should've made it into the
release.)


=== Added File ZODB3/Doc/ZEO/SIGNALS.txt ===
Signals (POSIX only)

  Signals are a POSIX inter-process communications mechanism.
  If you are using Windows then this documentation does not apply.

  The ZEO storage server process (started with ZEO/start.py) responds to
  signals which are sent to the process id written to the file
  'ZOPE_HOME/var/ZEO_SERVER.pid'::

     SIGTERM - Close open storages and sockets, then shut down.

               kill -TERM `cat ZOPE_HOME/var/ZEO_SERVER.pid`

     SIGHUP  - Close open storages and sockets, then restart.

               kill -HUP `cat ZOPE_HOME/var/ZEO_SERVER.pid`

     SIGUSR2 - Rotate log files.

               kill -USR2 `cat ZOPE_HOME/var/ZEO_SERVER.pid`

  When using zdaemon (the default), the pid file contains the pid of
  the zdaemon process.  Otherwise (when the -s option is used), the
  pid file contains the storage server's own pid.

  Note that zdaemon forwards signals to the child process.
  Specifically, it forwards all those signals listed above, plus
  SIGINT, SIGQUIT and SIGUSR1.