undead
runs a command and re-runs it on occasional, uncontrollable failure exits.
undead [-n <retry count>] command args...
Rename/symlink undead
to undead_prog_, to invoke prog implicitly. eg.
undeadperl mayfail.pl
Place .undeadrc.pl in $PWD with content for example:
{
pattern => {
stderr => [
qr/^PhantomJS has crashed\./,
]
},
count => 20,
};