[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - zopectl.py:1.2

Chris McDonough chrism@zope.com
Sat, 12 Apr 2003 21:56:08 -0400


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv3329/lib/python/Zope/Startup

Modified Files:
	zopectl.py 
Log Message:
Reenable web-controlled restart under the zdctl regime.


=== Zope/lib/python/Zope/Startup/zopectl.py 1.1 => 1.2 ===
--- Zope/lib/python/Zope/Startup/zopectl.py:1.1	Tue Apr  8 13:41:04 2003
+++ Zope/lib/python/Zope/Startup/zopectl.py	Sat Apr 12 21:56:07 2003
@@ -117,6 +117,11 @@
             args = [opt, svalue]
         return args
 
+    def do_start(self, arg):
+        # signal to Zope that it is being managed
+        #(to indicate it's web-restartable)
+        os.putenv('ZMANAGED', '1')
+        ZDCmd.do_start(self, arg)
 
 def main(args=None):
     # This is exactly like zdctl.main(), but uses ZopeCtlOptions and