nesquena-cap-recipes 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +1 -0
- data/VERSION.yml +1 -1
- data/lib/cap_recipes/tasks/memcache/manage.rb +2 -1
- metadata +1 -1
data/README.textile
CHANGED
@@ -169,6 +169,7 @@ h4. Configuration
|
|
169
169
|
* memcache_size - the total size of memory to use [default: 64]
|
170
170
|
* memcache_port - the port to start memcache [default: '11211']
|
171
171
|
* memcache_host - the host for memcache [default: '127.0.0.1']
|
172
|
+
* memcache_user - the user to run memcache [default: 'nobody']
|
172
173
|
|
173
174
|
h4. Tasks
|
174
175
|
|
data/VERSION.yml
CHANGED
@@ -4,6 +4,7 @@ Capistrano::Configuration.instance(true).load do
|
|
4
4
|
set :memcache_size, '64'
|
5
5
|
set :memcache_port, '11211'
|
6
6
|
set :memcache_host, '127.0.0.1'
|
7
|
+
set :memcache_user, 'nobody'
|
7
8
|
|
8
9
|
namespace :memcache do
|
9
10
|
|
@@ -16,7 +17,7 @@ Capistrano::Configuration.instance(true).load do
|
|
16
17
|
desc "Starts the memcache server"
|
17
18
|
task :start, :roles => :app do
|
18
19
|
puts "Starting the memcache server"
|
19
|
-
try_sudo "memcached -m #{memcache_size} -p #{memcache_port} -l #{memcache_host}"
|
20
|
+
try_sudo "memcached -m #{memcache_size} -p #{memcache_port} -l #{memcache_host} -u #{memcache_user}"
|
20
21
|
end
|
21
22
|
|
22
23
|
desc "Restarts the memcache server"
|