Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Increment/decrement processes #21

mbdev opened this Issue · 2 comments

2 participants


This is a feature request of course, but I'd like to be able to increment or decrement processes. Ideally I would like something like the following

$ god increment group1 4
# or
$ god +1 group1
# then w.start is called, another process is started and monitored.

+1. Is there a way to currently do this 'unofficially'? We add/remove unicorn workers through a shell script that invokes kill with either TTIN or TTOU, but keeping everything in God would be excellent.


I'm thinking something like: do |w|     = "unicorn"
  w.pid_file = "/path/to/"
  ... snip ...

  w.action :incr, "kill -TTIN `cat #{w.pid_file}`"
  w.action :decr, "kill -TTOU `cat #{w.pid_file}`"

I guess with support for a Proc instead of a String, like the other commands too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.