On Thu, 17 Apr 2014 15:08:50 +0200 [email protected] wrote: > Add respawn
A truly genius program! Take this example[0], which is very complex and difficult to solve using initrd/upstart (Yuck!). Doing this in the shell using respawn makes this trivial: %PROGRAM% || respawn %PROGRAM% (only respawn on exit-code 0) %PROGRAM% && respawn %PROGRAM% (only respawn on exit-code 1) Good job! Cheers FRIGN [0]: http://www.linuxquestions.org/questions/linux-server-73/how-can-i-tell-init-to-respawn-a-process-only-on-exit-code-0-a-4175464661/ -- FRIGN <[email protected]>
