[Checkins] SVN: lovely.remoteinclude/trunk/buildout.cfg added ctl
scripts for memcached and nginx
Bernd Dorn
bernd.dorn at lovelysystems.com
Fri Jun 8 08:08:29 EDT 2007
Log message for revision 76495:
added ctl scripts for memcached and nginx
Changed:
U lovely.remoteinclude/trunk/buildout.cfg
-=-
Modified: lovely.remoteinclude/trunk/buildout.cfg
===================================================================
--- lovely.remoteinclude/trunk/buildout.cfg 2007-06-08 12:05:24 UTC (rev 76494)
+++ lovely.remoteinclude/trunk/buildout.cfg 2007-06-08 12:08:28 UTC (rev 76495)
@@ -1,6 +1,6 @@
[buildout]
develop = .
-parts = test selenium nginx instance memcached
+parts = test selenium nginx nginx-ctl instance memcached
find-links = http://download.zope.org/distribution
[test]
@@ -67,26 +67,72 @@
script = selenium
entry-points = selenium=zc.selenium.selenium:main
initialization =
- # hoschi
- sys.argv.insert(1, '${selenium-instance:run-directory}/zope.conf')
+ sys.argv.insert(1, '${selenium-instance:run-directory}/zope.conf')
-
[nginx]
recipe = zc.recipe.cmmi
url = http://sysoev.ru/nginx/nginx-0.5.22.tar.gz
extra_options = --with-poll_module
-[memcached-rc]
-recipe = zc.recipe.rhrc
-parts = memcached
-dest = ${buildout:bin-directory}
+[nginx-ctl]
+recipe = lovely.recipe:mkfile
+path = ${buildout:bin-directory}/nginx
+mode = 0755
+content =
+ #!/bin/sh
+ PIDFILE=${nginx:location}/logs/nginx.pid
+ case "$1" in
+ start)
+ ${nginx:location}/sbin/nginx -c ${buildout:directory}/src/lovely/remoteinclude/demo/nginx.conf
+ ;;
+ stop)
+ kill -QUIT `cat $PIDFILE`
+ ;;
+ reload)
+ kill -HUP `cat $PIDFILE`
+ ;;
+ restart|force-reload)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ exit 1
+ ;;
+ esac
[memcached]
recipe = zc.recipe.cmmi
-run-script = abc
url = http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
extra_options = --with-libevent=${libevent:location}
+[memcached-ctl]
+recipe = lovely.recipe:mkfile
+path = ${buildout:bin-directory}/memcached
+mode = 0755
+content =
+ #!/bin/sh
+ PIDFILE=${memcached:location}/memcached.pid
+ case "$1" in
+ start)
+ ${memcached:location}/bin/memcached -d -P $PIDFILE
+ ;;
+ stop)
+ kill `cat $PIDFILE`
+ ;;
+ restart|force-reload)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
+ exit 1
+ ;;
+ esac
+
+
[libevent]
recipe = zc.recipe.cmmi
url = http://www.monkey.org/~provos/libevent-1.3b.tar.gz
More information about the Checkins
mailing list