nesquena-cap-recipes 0.2.14 → 0.2.15
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/VERSION.yml +1 -1
- data/lib/cap_recipes/tasks/memcache.rb +3 -3
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -10,20 +10,20 @@ Capistrano::Configuration.instance(true).load do
|
|
10
10
|
desc "Stops the memcache server"
|
11
11
|
task :stop, :roles => :app do
|
12
12
|
puts "Stopping the memcache server"
|
13
|
-
try_sudo "
|
13
|
+
try_sudo "nohup /etc/init.d/memcached stop &"
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Starts the memcache server"
|
17
17
|
task :start, :roles => :app do
|
18
18
|
puts "Starting the memcache server"
|
19
|
-
try_sudo "
|
19
|
+
try_sudo "nohup /etc/init.d/memcached start &"
|
20
20
|
end
|
21
21
|
|
22
22
|
desc "Restarts the memcache server"
|
23
23
|
task :restart, :roles => :app do
|
24
24
|
puts "Restarting the memcache server"
|
25
25
|
memcache.stop
|
26
|
-
sleep(
|
26
|
+
sleep(3) # sleep for 3 seconds to make sure the server has mopped up everything
|
27
27
|
memcache.start
|
28
28
|
end
|
29
29
|
|