Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

restart all god tasks

Tags:

ruby

god

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?

like image 921
m33lky Avatar asked Feb 23 '23 01:02

m33lky


2 Answers

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
like image 55
Dennis Avatar answered Mar 07 '23 13:03

Dennis


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.

like image 43
kik Avatar answered Mar 07 '23 14:03

kik