[Checkins] SVN: zc.recipe.deployment/trunk/src/zc/recipe/deployment/ add support for the system crontab directory

Fred L. Drake, Jr. fdrake at gmail.com
Thu Jan 18 21:58:44 EST 2007


Log message for revision 72098:
  add support for the system crontab directory

Changed:
  U   zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt
  U   zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py

-=-
Modified: zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt
===================================================================
--- zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt	2007-01-18 18:30:35 UTC (rev 72097)
+++ zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt	2007-01-19 02:58:41 UTC (rev 72098)
@@ -1,14 +1,18 @@
 Unix Deployment Support
 =======================
 
-The zc.recope.deploymemt recipe provides support for deploying
+The zc.recipe.deployment recipe provides support for deploying
 applications with multiple processes on Unix systems.  It creates
 directories to hold application instance configuration, log and
 run-time files.  It also sets or reads options that can be read by
 other programs to find out where to place files:
 
+cron-directory
+    The name of the directory in which cron jobs should be placed.
+    This is /etc/cron.d.
+
 etc-directory
-    The name of the directory where configurtion files should be
+    The name of the directory where configuration files should be
     placed.  This is /etc/NAME, where NAME is the deployment
     name. 
 
@@ -25,8 +29,8 @@
 
 rc-directory
     The name of the directory where run-control scripts should be
-    installed. This is /etc/init.d.
+    installed.  This is /etc/init.d.
 
-The log and run directories are created in such a way that the 
-directorie are owned by the user specified in the user option and are
+The etc, log, and run directories are created in such a way that the 
+directories are owned by the user specified in the user option and are
 writable by the user and the user's group.

Modified: zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py
===================================================================
--- zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py	2007-01-18 18:30:35 UTC (rev 72097)
+++ zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py	2007-01-19 02:58:41 UTC (rev 72098)
@@ -24,15 +24,16 @@
     def __init__(self, buildout, name, options):
         self.name, self.options = name, options
         create = []
-        
+
         options['run-directory'] = os.path.join(options.get('run', '/var/run'),
                                                 name)
         options['log-directory'] = os.path.join(options.get('log', '/var/log'),
                                                 name)
         options['etc-directory'] = os.path.join(options.get('etc', '/etc'),
                                                 name)
+        options['crontab-directory'] = options.get('crontab-directory', '/etc/cron.d')
         options['rc-directory'] = options.get('rc-directory', '/etc/init.d')
-        
+
     def install(self):
         options = self.options
         user = options['user']



More information about the Checkins mailing list