[Zodb-checkins] CVS: Releases/Zope/lib/python/zdaemon - zdctl.py:1.6
Guido van Rossum
guido@python.org
Tue, 26 Nov 2002 13:28:29 -0500
Update of /cvs-repository/Releases/Zope/lib/python/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv2082
Modified Files:
zdctl.py
Log Message:
Add a logreopen command.
=== Releases/Zope/lib/python/zdaemon/zdctl.py 1.5 => 1.6 ===
--- Releases/Zope/lib/python/zdaemon/zdctl.py:1.5 Tue Nov 26 12:54:30 2002
+++ Releases/Zope/lib/python/zdaemon/zdctl.py Tue Nov 26 13:28:28 2002
@@ -247,6 +247,13 @@
print "status [-l] -- Print status for the daemon process."
print " With -l, show raw status output as well."
+ def do_logreopen(self, arg):
+ self.do_kill(str(signal.SIGUSR2))
+
+ def help_logreopen(self):
+ print "logreopen -- Send a SIGUSR2 signal to the daemon process."
+ print " This is designed to reopen the log file."
+
def do_quit(self, arg):
self.get_status()
if not self.zd_up: