Questions tagged [god]

God is a Ruby process monitoring framework designed to keep processes up and running.

God manages the entire lifecycle of a running process. It handles starting, stopping, and restarting process, and it also monitors the processes and restarts them if they exit or an error occurs. Similar tools are runit and monit.

The source code and documentation can be found on God's rubyforge page or on Ruby gems. The current version is 0.13.2.

121 questions
0
votes
1 answer

Monitor a process that is already running

I am trying to monitor java process that is already running. Following is my god configuration(test.god): God.watch do |w| w.name = "Test" w.start = "java Test" w.keepalive I started god monitoring with following command: god -c…
Sandeep
  • 353
  • 1
  • 4
  • 11
0
votes
1 answer

How to run system commands before program start using Ruby GOD gem

I use GOD to watch the process => rake resque:scheduler Before run 'rake resque:scheduler ' I have to run rake resque_schedule:setup But the following settings are not working. I use the ps aux to list the process but the scheduler is not working…
newBike
  • 14,385
  • 29
  • 109
  • 192
0
votes
0 answers

Resque fails when run with God - JavaScript run-time?

I'm trying to deploy a simple Rails app with a couple of Resque workers. Since I need the workers to run in the background I'm using God to manage them. When running the workers from the command line it runs just fine: QUEUE=*…
shaimo
  • 376
  • 3
  • 17
0
votes
1 answer

Why God can't exec command starting with `RAILS_ENV`

I am deploying a project to a environment where multiple application is deployed. So I uses rvm to separated the running environment of each Rails application. In my application, I use gem god to manage my delayed_job processes, in my god file I…
larryzhao
  • 3,173
  • 2
  • 40
  • 62
0
votes
1 answer

God : Unable to start without sudo

When I run god without sudo then god is not able to find event system . However when I run with sudo god able to find event system. $ god -V Version: 0.13.2 Polls: enabled Events: none $ sudo god -V Version: 0.13.2 Polls: enabled Events:…
NikD
  • 41
  • 1
  • 6
0
votes
1 answer

How to (or should I) monitor or ensure running of a monitoring software?

I'm writing a system/service monitoring software, and my primary goal is to make it as failsafe as possible. Right now, I have a binary script which starts the master process, which forks off children which do the actual monitoring and reporting.…
abject_error
  • 2,858
  • 1
  • 19
  • 23
0
votes
1 answer

Resque with God uses IO.popen

I am under rvm. I have god. It starts resque. Resque job opens an IO.popen to the local system program, sends it some text, gets some text back from the stream, analyses it a bit, closes the IO. So: when I run resque as rake resque:work — it's ok,…
Dahan
  • 163
  • 1
  • 10
0
votes
1 answer

Correct way to monitor ruby background processes (like Resque) in production

I've been struggling with this for a while, What is the correct approach to start background processes like resque and resque scheduler? Is using God an overkill? Currently I'm trying to get God to work, but I'm not sure if the *.god conf files…
CodeOverload
  • 47,274
  • 54
  • 131
  • 219
0
votes
1 answer

God-Resque Process in Limbo

I'm currently using god to start 6 resque worker processes. Resque show's that they are started and working and everything is working. Occasionally a worker process drops out of recognition and ceases to be a known resque worker process. What I'm…
David Hahn
  • 740
  • 9
  • 26
0
votes
1 answer

Using God monitor unicorn for rails but permission error

I am new to God. I am trying to using God to monitor unicorn process on which my rails application runs. Here's my God file: rails_env = ENV["RAILS_ENV"] APP_ROOT = '/home/deployer/deploy/myproject' RAILS_ROOT = "#{APP_ROOT}/current" God.watch do…
larryzhao
  • 3,173
  • 2
  • 40
  • 62
0
votes
1 answer

How do you monitor a solr server with god, instead of respawning bundle sunspot-solr start

The issue is that the command I use to start sunspot, bundle exec sunspot-solr start, itself spawns a solr server, which is the actual process that needs to be monitored, not the original command. If I just set the start command, then it…
D-Nice
  • 4,772
  • 14
  • 52
  • 86
0
votes
2 answers

how to make foreman start god

I have a Procfile like this: web: bundle exec unicorn -c config/unicorn.rb -E production god: god -c services.god but foreman start god doesn't start...it's just say this: 17:14:32 god.1 | started with pid 29506 17:14:32 god.1 | exited with code…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
0
votes
1 answer

ROR, Redis, Resque, God & Cron on Ubuntu Server - Boot

I have made several jobs that god takes care of in my ruby application. However when the server reboots the job stops. I want to avoid this so I've made this script on my server. It looks like this. my_app.sh #!/bin/bash # god tasks # case $1…
Philip
  • 6,827
  • 13
  • 75
  • 104
0
votes
1 answer

What is the origin of System::Process.new?

Where is the origin of Process.new and where is it doccumented? I have looked in the Ruby docs at the process module and I cannot figure out how this is declared. The code I am trying to replicate is in the Ruby God gem in…
BookOfGreg
  • 3,550
  • 2
  • 42
  • 56
0
votes
2 answers

rails service management in development? ( foreman does not start all services )

My foreman gem does not load all my services. This is my Procfile: search: redis-server search: bundle exec rake resque:start &&> log/resque_worker_queue.log search: bundle exec rackup private_pub.ru -s thin -E production & &>…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
1 2 3
8
9