Sha256: a5c2e45bacb8f0886fc8f96a992ab1c937fdd3437840dbe10bdfde0f40afc0a8

Contents?: true

Size: 553 Bytes

Versions: 57

Compression:

Stored size: 553 Bytes

Contents

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

start on runlevel [2345]
stop on runlevel [016]

script
  exec sudo -u <%= rubber_env.app_user %> /bin/bash -l -c 'cd <%= Rubber.root %> && exec bundle exec rake resque:scheduler >> log/resque-scheduler_upstart.log 2>&1'
end script

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

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

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-3.2.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-3.2.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-3.1.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-3.0.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-3.0.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.16.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.15.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.15.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.15.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.14.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.13.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.13.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.12.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.12.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.12.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.11.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.10.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.10.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.10.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf