-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.cfg
58 lines (49 loc) · 1.21 KB
/
base.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[buildout]
extends = versions.cfg
# Specific server configuration
effective-user = chino
memcache-address = 127.0.0.1
memcache-port = 11210
memcache-size = 8192
parts =
libevent
memcached
memcached-ctl
eggs =
Pillow
Plone
Products.PloneHotfix20130618
zcml =
Products.CMFPlone
[memcached]
recipe = zc.recipe.cmmi
url = http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
extra_options = --with-libevent=${libevent:location}
[memcached-ctl]
recipe = collective.recipe.template
output = ${buildout:bin-directory}/memcached
mode = 0755
input = inline:
#!/bin/sh
export LD_LIBRARY_PATH=${libevent:location}/lib
PIDFILE=${memcached:location}/memcached.pid
case "$1" in
start)
${memcached:location}/bin/memcached -d -u ${buildout:effective-user} -P $PIDFILE -p ${buildout:memcache-port} -m ${buildout:memcache-size}
;;
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 = https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz