Sha256: 96ffc6b27ea10fc1d2c81c44ca474891f68ef26431100b482255ca28a734102a

Contents?: true

Size: 436 Bytes

Versions: 9

Compression:

Stored size: 436 Bytes

Contents

# here we have an example script which is not daemonized.  
#
# Make sure that mq_poller requires the right libraries and runs in a loop...

God.watch do |w|
  w.name = 'queue'
  w.group = 'app'
  
  w.uid = @configs.user
  w.gid = @configs.group
  w.autostart = false
  
  w.start = "/usr/local/ec2onrails/bin/rails_env #{APP_ROOT}/script/mq_poller"

  default_configurations(w)
  restart_if_resource_hog(w)
  monitor_lifecycle(w)
end

Version data entries

9 entries across 9 versions & 6 rubygems

Version Path
ScholarNexus-ec2onrails-0.9.10 server/files/etc/god/examples/have_god_daemonize.god
ScholarNexus-ec2onrails-0.9.11 server/files/etc/god/examples/have_god_daemonize.god
arpitjain11-ec2onrails-0.9.10 server/files/etc/god/examples/have_god_daemonize.god
mdh-ec2onrails-0.9.10 server/files/etc/god/examples/have_god_daemonize.god
pauldowman-ec2onrails-0.9.10.0 server/files/etc/god/examples/have_god_daemonize.god
pauldowman-ec2onrails-0.9.10.1 server/files/etc/god/examples/have_god_daemonize.god
rsanheim-ec2onrails-0.9.11.1 server/files/etc/god/examples/have_god_daemonize.god
skippy-ec2onrails-0.9.10 server/files/etc/god/examples/have_god_daemonize.god
skippy-ec2onrails-0.9.11 server/files/etc/god/examples/have_god_daemonize.god