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

Redmine plugins are not shows

CentOS 7, nginx+unicorn+god+mariadb. I'm trying to install plugins, but unable to do it. Creating tmp/restart.txt didnot helped and restarting nginx too. Any other ideas why? Please help. Environment:   Redmine version            2.6.1.stable   Ruby…
0
votes
2 answers

Starting Node with God with sudo

I need to start a Node.js server as the root user (using sudo) with a start param that looks like: w.start = "sudo node #{KTHXBYE_NODE_ROOT}/poll.js" As I am using Socket.IO and need the use of Flash Sockets (which requires Node.js to be run as…
Lukas
  • 3,175
  • 2
  • 25
  • 34
0
votes
0 answers

Unicorn is not part of the bundle while starting from God

I have a sinatra app that works great when i start it from the project directory using bundle exec unicorn -c config/unicorn.rb -D. However when i use god to start it, I get error stating unicorn is not part of the bundle. Add it to Gemfile.…
pr4n
  • 2,918
  • 3
  • 30
  • 42
0
votes
1 answer

Unable to start python process using God

Im using God (godrb.com) to monitor a twisted framework based application process. In my god file (start_my_app.god) i have God.watch do |w| w.name='my_app' w.start='twistd -y /home/joes/my_app.tac --pidfile /home/joes/my_app.pid' …
joes
  • 349
  • 1
  • 2
  • 10
0
votes
2 answers

How to run auto restart in heroku for ruby scripts

In my Dev box on Nitrous, I am able to run God -c scripts.god -D to restart the two .rb files if they die. I just run that and the processes for the most part stay alive. But I cannot do the same in heroku. It seems when I run the god command the…
Satchel
  • 16,414
  • 23
  • 106
  • 192
0
votes
1 answer

how to monitor and restart two ruby scripts with God?

I have been able to run a single god file for a single ruby script as such: God.watch do |w| w.name = "twilio" w.start = "ruby ~/code/site/iron.io/twilio-listen.rb" w.keepalive end But I have two scripts and want to have God watch both of…
Satchel
  • 16,414
  • 23
  • 106
  • 192
0
votes
1 answer

God using sudo fails to find the environment parameter SECRET_KEY_BASE in the .bash_profile file

I added those rows to /home/web/.bash_profile. The web is the user of Rails app. SECRET_KEY_BASE=xxxxxxxxxxxxxxxxxxxxx export SECRET_KEY_BASE I added this row into /etc/sudoers. Defaults env_keep += "SECRET_KEY_BASE" This command returns expected…
mitsu
  • 383
  • 2
  • 11
0
votes
1 answer

Getting started with ruby God

When following this tutorial on God, I run the command god -c path/to/simple.god -D and instead of getting the output as described, I get following weird output. 0000000 G o d . w a t c h d o | w | …
Kamal Banga
  • 107
  • 1
  • 10
0
votes
1 answer

Start god process on server startup (Ubuntu)

I'm currently struggling with executing a simple command which I know works when I run it manually when logged in as either root or non-root user: god -c path/to/app/queue_worker.god I'm trying to run this when the server starts (I'm running Ubuntu…
0
votes
1 answer

How to integrate god, sidekiq with capistrano?

I am using Rails 4. I have some background processes running for expiring posts. sidekiq is being used for background processes. But it halts sometimes in productions. So the jobs can not perform at the exact time. How to integrate god, sidekiq with…
Debadatt
  • 5,935
  • 4
  • 27
  • 40
0
votes
1 answer

how to start rails thin server server with god

RAILS_ROOT = File.dirname(File.dirname(__FILE__)) God.watch do |w| pid_file = File.join(RAILS_ROOT, "tmp/pids/server.pid") w.name = "thin" w.interval = 60.seconds w.start = "rails server -e production" w.stop = "kill -s QUIT $(cat…
surendar
  • 656
  • 1
  • 9
  • 27
0
votes
1 answer

How to write a file that is both valid ruby syntax and valid YAML syntax

In order to have only a single point of configuration for my app I need to make a YAML config file that is also valid ruby code. I.e. a mixed syntax file that can be parsed as YAML and parsed as ruby. My application is a suite of processes managed…
meesern
  • 2,518
  • 27
  • 29
0
votes
1 answer

Cannot start workling_starling_client in rails production environment

I was using god to start and monitor my starling and workling daemons. Works awesome on development machine but "workling_starling_client" refuses to start on my production machine.
JasonOng
  • 3,268
  • 3
  • 21
  • 17
0
votes
1 answer

God always reports Socket drbunix:///tmp/god.17165.sock already in use by another instance of god

I am using God for the first time to monitor my resque and resque-sceduler process.I followed the tutorial on God's home page. According to that if god if there is already a watch added to God by: sudo god -c /path/to/config.god then after editing…
Infant Dev
  • 1,659
  • 8
  • 24
  • 48
0
votes
1 answer

resque workers exit shortly after start with no output

I am trying to get resque working in production. I have the following god file: rails_env = ENV['RAILS_ENV'] || "production" rails_root = ENV['RAILS_ROOT'] || "/home/rails/current" num_workers = rails_env == 'production' ? 5 :…
David Beck
  • 10,099
  • 5
  • 51
  • 88
1 2 3
8 9