[Checkins] SVN: zc.recipe.deployment/trunk/ Added a logrotate-directory option.

Jim Fulton jim at zope.com
Thu Mar 22 10:11:43 EDT 2007


Log message for revision 73444:
  Added a logrotate-directory option.
  

Changed:
  U   zc.recipe.deployment/trunk/README.txt
  U   zc.recipe.deployment/trunk/setup.py
  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/README.txt
===================================================================
--- zc.recipe.deployment/trunk/README.txt	2007-03-22 13:55:35 UTC (rev 73443)
+++ zc.recipe.deployment/trunk/README.txt	2007-03-22 14:11:42 UTC (rev 73444)
@@ -9,7 +9,7 @@
 sets or reads options that can be read by other programs to find out
 where to place files:
 
-cron-directory
+crontab-directory
     The name of the directory in which cron jobs should be placed.
     This is /etc/cron.d.
 
@@ -23,6 +23,10 @@
     their log files.  This is /var/log/NAME, where NAME is
     the deployment name.
 
+logrotate-directory
+    The name of the directory where logrotate configuration files
+    should be placed, typically, /etc/logrotate.d.
+
 run-directory
     The name of the directory where application instances should put
     their run-time files such as pid files and inter-process
@@ -40,6 +44,19 @@
 Changes
 *******
 
+0.4 (Mar 22, 2007)
+==================
+
+Features Added
+--------------
+
+- Added setting for the logrotate configuration directories.
+
+Bugs Fixed
+----------
+
+- The documentation gave the wrong name for the crontab-directory option.
+
 0.3 (Feb 14, 2007)
 ==================
 

Modified: zc.recipe.deployment/trunk/setup.py
===================================================================
--- zc.recipe.deployment/trunk/setup.py	2007-03-22 13:55:35 UTC (rev 73443)
+++ zc.recipe.deployment/trunk/setup.py	2007-03-22 14:11:42 UTC (rev 73444)
@@ -19,7 +19,7 @@
 
 setup(
     name = name,
-    version = '0.3',
+    version = '0.4',
     author = 'Jim Fulton',
     author_email = 'jim at zope.com',
     description = 'ZC Buildout recipe for Unix deployments',

Modified: zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt
===================================================================
--- zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt	2007-03-22 13:55:35 UTC (rev 73443)
+++ zc.recipe.deployment/trunk/src/zc/recipe/deployment/README.txt	2007-03-22 14:11:42 UTC (rev 73444)
@@ -54,6 +54,7 @@
     crontab-directory = /etc/cron.d
     etc-directory = /etc/foo
     log-directory = /var/log/foo
+    logrotate-directory = /etc/logrotate.d
     rc-directory = /etc/init.d
     recipe = zc.recipe.deployment
     run-directory = /var/run/foo

Modified: zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py
===================================================================
--- zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py	2007-03-22 13:55:35 UTC (rev 73443)
+++ zc.recipe.deployment/trunk/src/zc/recipe/deployment/__init__.py	2007-03-22 14:11:42 UTC (rev 73444)
@@ -37,6 +37,9 @@
                                                    '/etc/cron.d')
         options['rc-directory'] = options.get('rc-directory', '/etc/init.d')
 
+        options['logrotate-directory'] = options.get('logrotate-directory',
+                                                     '/etc/logrotate.d')
+
     def install(self):
         options = self.options
         user = options['user']



More information about the Checkins mailing list