Hi Nuno
Thanks. What I meant was this:
Currently I can specify a start, stop, and restart command in god.
I want to specify multiple different restart commands.
E.g.
Let's say I am monitoring the thin web server. If my box is out of memory, I want to restart with 5 servers, but if my box is out of cpu, I want to start with 3 servers (don't ask why .. contrived example).
So ..
w.restart1 = thin restart --servers 5
w.restart2 = thin restart --servers 3
How do I inject the restart command to run in the restart_if block?