restart all god tasks
Asked Answered
M

3

5

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?

Mistake answered 22/12, 2011 at 5:32 Comment(0)
W
0

Nope, there isn't. You have to restart either each group or each individual process.

Weingartner answered 22/12, 2011 at 7:5 Comment(3)
There's a guy who tried to code it up as an event. But that's too much work for me.Mistake
You could always just group all your watches into a single group. Then just restart that group.Weingartner
No, my watches are grouped by logical meaning. If there were hierarchical groupings, then I could do what you proposed.Mistake
P
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
Pinnatifid answered 29/12, 2011 at 18:44 Comment(1)
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.Mistake
S
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.

Seppuku answered 25/9, 2013 at 7:59 Comment(0)
W
0

Nope, there isn't. You have to restart either each group or each individual process.

Weingartner answered 22/12, 2011 at 7:5 Comment(3)
There's a guy who tried to code it up as an event. But that's too much work for me.Mistake
You could always just group all your watches into a single group. Then just restart that group.Weingartner
No, my watches are grouped by logical meaning. If there were hierarchical groupings, then I could do what you proposed.Mistake

© 2022 - 2024 — McMap. All rights reserved.