[Zope-Checkins] SVN: Zope/trunk/lib/python/Zope/Startup/zope Collector #1291: zopectl start broken.

Chris McDonough chrism at plope.com
Sat May 22 19:38:59 EDT 2004


Log message for revision 24885:
Collector #1291: zopectl start broken.



-=-
Modified: Zope/trunk/lib/python/Zope/Startup/zopectl.py
===================================================================
--- Zope/trunk/lib/python/Zope/Startup/zopectl.py	2004-05-22 18:31:47 UTC (rev 24884)
+++ Zope/trunk/lib/python/Zope/Startup/zopectl.py	2004-05-22 23:38:59 UTC (rev 24885)
@@ -24,6 +24,7 @@
 -h/--help -- print this usage message and exit
 -i/--interactive -- start an interactive shell after executing commands
 -l/--logfile -- log file to be read by logtail command
+-m/--umask -- provide octal umask for files created by the managed process
 action [arguments] -- see below
 
 Actions are commands like "start", "stop" and "status".  If -i is
@@ -81,6 +82,7 @@
                  default=1)
         self.add("logfile", None, "l:", "logfile=")
         self.add("prompt", "runner.prompt", default="zopectl>")
+        self.add("umask", "runner.umask", "m:", "umask=")
 
     def realize(self, *args, **kw):
         ZDOptions.realize(self, *args, **kw)

Modified: Zope/trunk/lib/python/Zope/Startup/zopeschema.xml
===================================================================
--- Zope/trunk/lib/python/Zope/Startup/zopeschema.xml	2004-05-22 18:31:47 UTC (rev 24884)
+++ Zope/trunk/lib/python/Zope/Startup/zopeschema.xml	2004-05-22 23:38:59 UTC (rev 24885)
@@ -138,6 +138,17 @@
       </description>
     </key>
 
+    <key name="umask" datatype="zdaemon.zdoptions.octal_type"
+         required="no"
+         default="022">
+      <description>
+        Command-line option: -m or --umask.
+
+        When daemon mode is used, this option specifies the octal umask
+        of the subprocess.
+      </description>
+    </key>
+
     <key name="default-to-interactive" datatype="boolean"
 	 required="no" default="true">
       <description>




More information about the Zope-Checkins mailing list