[Checkins] SVN: grokproject/trunk/ Added daemon part to resulting buildout.cfg

Jan-Jaap Driessen jdriessen at thehealthagency.com
Mon Nov 1 12:39:23 EDT 2010


Log message for revision 118065:
  Added daemon part to resulting buildout.cfg

Changed:
  U   grokproject/trunk/CHANGES.txt
  U   grokproject/trunk/README.txt
  U   grokproject/trunk/grokproject/template/buildout.cfg_tmpl

-=-
Modified: grokproject/trunk/CHANGES.txt
===================================================================
--- grokproject/trunk/CHANGES.txt	2010-11-01 16:38:41 UTC (rev 118064)
+++ grokproject/trunk/CHANGES.txt	2010-11-01 16:39:23 UTC (rev 118065)
@@ -6,7 +6,9 @@
 
 - `unzip=true` default behavior in buildout.cfg.
 
+- Added 'daemon' part to the newly created buildout.cfg.
 
+
 2.1 (2010-10-26)
 ----------------
 

Modified: grokproject/trunk/README.txt
===================================================================
--- grokproject/trunk/README.txt	2010-11-01 16:38:41 UTC (rev 118064)
+++ grokproject/trunk/README.txt	2010-11-01 16:39:23 UTC (rev 118065)
@@ -29,7 +29,7 @@
 
 Start/stop it in daemon mode::
 
-  $ bin/paster serve parts/etc/deploy.ini --daemon
+  $ bin/daemon start/stop
 
 There is also an Ajax enabled debugger (point your browser to
 http://localhost:8080/@@login.html when using this)::

Modified: grokproject/trunk/grokproject/template/buildout.cfg_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/buildout.cfg_tmpl	2010-11-01 16:38:41 UTC (rev 118064)
+++ grokproject/trunk/grokproject/template/buildout.cfg_tmpl	2010-11-01 16:39:23 UTC (rev 118065)
@@ -7,6 +7,7 @@
 unzip = true
 parts =
     app
+    daemon
     debug_ini
     deploy_ini
     i18n
@@ -40,12 +41,12 @@
        PasteDeploy
 interpreter = python-console
 
-[deploy_ini]
-recipe = collective.recipe.template
-input = etc/deploy.ini.in
-output = $${buildout:parts-directory}/etc/deploy.ini
-host = 127.0.0.1
-port = 8080
+[daemon]
+recipe = collective.recipe.scriptgen
+cmd = $${buildout:bin-directory}/paster
+arguments = serve $${buildout:parts-directory}/etc/deploy.ini
+    --daemon --pid-file=$${buildout:directory}/var/daemon.pid
+    --log-file=$${buildout:directory}/log/daemon.log
 
 [debug_ini]
 recipe = collective.recipe.template
@@ -54,6 +55,13 @@
 host = 127.0.0.1
 port = 8080
 
+[deploy_ini]
+recipe = collective.recipe.template
+input = etc/deploy.ini.in
+output = $${buildout:parts-directory}/etc/deploy.ini
+host = 127.0.0.1
+port = 8080
+
 # this section named so that the i18n scripts are called bin/i18n...
 [i18n]
 recipe = z3c.recipe.i18n:i18n



More information about the checkins mailing list