Sha256: 33945d604e9805798d2c6de977a77deeefc1dfd1de197a096d474739dccefaa6

Contents?: true

Size: 616 Bytes

Versions: 16

Compression:

Stored size: 616 Bytes

Contents

<%
  @path = "/etc/init/resque-web.conf"
  @backup = false
%>
description "resque web server"

start on started redis
stop on runlevel [016]

script
  exec sudo -u <%= rubber_env.app_user %> /bin/bash -l -c 'cd <%= Rubber.root %> && exec bundle exec resque-web --foreground --port <%= rubber_env.resque_web_port %> --no-launch --app-dir tmp/resque_web config/initializers/resque.rb > log/resque-web.log 2>&1'
end script

post-start script
  status resque-web | head -n1 | awk '{print $NF}' > <%= rubber_env.resque_web_pid_file %>
end script

post-stop script
  rm -f <%= rubber_env.resque_web_pid_file %>
end script

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubber-2.0.3 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.2 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.1 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre12 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre11 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre10 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre9 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre8 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre7 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre6 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre5 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre4 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre3 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre2 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf
rubber-2.0.0.pre1 templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf