[Checkins] SVN: Zope/branches/2.12/src/Zope2/Startup/zopectl.py - added potential entry point

Yvo Schubbe y.2009 at wcm-solutions.de
Sun Jul 19 06:31:22 EDT 2009


Log message for revision 102008:
  - added potential entry point

Changed:
  U   Zope/branches/2.12/src/Zope2/Startup/zopectl.py

-=-
Modified: Zope/branches/2.12/src/Zope2/Startup/zopectl.py
===================================================================
--- Zope/branches/2.12/src/Zope2/Startup/zopectl.py	2009-07-19 10:01:09 UTC (rev 102007)
+++ Zope/branches/2.12/src/Zope2/Startup/zopectl.py	2009-07-19 10:31:22 UTC (rev 102008)
@@ -322,8 +322,7 @@
         try: os.waitpid(-1, os.WNOHANG)
         except OSError: break
 
-
-if __name__ == "__main__":
+def run():
     # we don't care to be notified of our childrens' exit statuses.
     # this prevents zombie processes from cluttering up the process
     # table when zopectl start/stop is used interactively.
@@ -347,3 +346,6 @@
         signal.signal(signal.SIGCHLD, _ignoreSIGCHLD)
     exitstatus = main()
     sys.exit(exitstatus)
+
+if __name__ == '__main__':
+    run()



More information about the Checkins mailing list