Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Note about restarting async observer. Specify port and host for beans…

…talkd.
  • Loading branch information...
commit 757acdaca5fcd66c0e3c13c998d8bb9460e9b90c 1 parent ef3a2a2
@topfunky topfunky authored
View
10 recipes/peepserver_runit.rb
@@ -49,17 +49,19 @@ def install_runit_service(service_name)
task :async_observer do
async_observer_service_path = File.join(shared_runit_service_path, "#{application}-async_observer")
run "mkdir -p #{async_observer_service_path}"
-
+
result = render_erb_template(File.dirname(__FILE__) + "/templates/runit/async_observer_worker.erb")
put result, "#{async_observer_service_path}/run", :mode => 0755
- run "ln -s #{async_observer_service_path} ~/service/"
+ run "ln -s #{async_observer_service_path} ~/service/"
+
+ inform "Add this callback to your deploy.rb:\n\n\tafter 'deploy:restart', 'peepcode:runit:restart_async_observer'"
end
-
+
desc "Restart async-observer worker for this application"
task :restart_async_observer do
run "sv restart ~/service/#{application}-async_observer"
end
-
+
desc "Install runit task for memcache"
task :memcached do
install_runit_service("memcached")
View
2  recipes/templates/runit/beanstalkd
@@ -1,4 +1,4 @@
#!/bin/sh
exec 2>&1
-exec /usr/local/bin/beanstalkd
+exec /usr/local/bin/beanstalkd -l 127.0.0.1 -p 11300
Please sign in to comment.
Something went wrong with that request. Please try again.