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-2.5.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.4.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.4.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.4.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.3.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.3.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.2.4 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.2.3 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.2.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.2.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.2.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.1.2 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.1.1 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.1.0 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.0.8 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.0.7 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf
rubber-2.0.6 templates/resque_scheduler/config/rubber/role/resque_scheduler/resque-scheduler-upstart.conf