Here's the description for god's restart command: restart <task or group name>
. The builtin init script does a kill, followed by a start. Is there really no built-in way to send a restart command to all watches whether they are grouped or not?
Asked
Active
Viewed 2,955 times
3 Answers
5
There is a way to restart all watches (it is a hack), but the below should produce the behavior. It terminates god and all tasks, then restarts god.
$ sudo god terminate && sudo /etc/init.d/god start

Dennis
- 139
- 6
-
I know about this, but this won't do a `restart` command on the watches. Instead it will do a `stop` followed by a `start`. A `restart` is usually meant to be a soft restart like reloading configs. – m33lky Dec 29 '11 at 23:46
3
For people reaching there looking for a current solution, please note this feature is now provided in 0.13.3 : if no parameter is given to start / stop / restart, it will be triggered on all watches.

kik
- 7,867
- 2
- 31
- 32
0
Nope, there isn't. You have to restart either each group or each individual process.

dj2
- 9,534
- 4
- 29
- 52
-
There's a guy who tried to code it up as an [event](http://www.simonecarletti.com/blog/2011/02/how-to-restart-god-when-you-deploy-a-new-release/). But that's too much work for me. – m33lky Dec 22 '11 at 07:22
-
You could always just group all your watches into a single group. Then just restart that group. – dj2 Dec 22 '11 at 07:26
-
No, my watches are grouped by logical meaning. If there were hierarchical groupings, then I could do what you proposed. – m33lky Dec 22 '11 at 18:32