05-03-2016, 06:12 AM
@LogicParrot just as I am reviewing my mind, you should be able to use exit codes. Like restart if exit code is non-zero (eg at interruptions through sigkill or sigsegv) but that wouldn't include a standard stop and therefore the restart. But has this anything to do with the line "couldn't notify input thread, hanging up or killing?" (not exactly sure about the second part part)
Anyway, in bash scripting the exit code of the last command is $? So you can check with test -n (AFAIK, not tested). See man test
Anyway, in bash scripting the exit code of the last command is $? So you can check with test -n (AFAIK, not tested). See man test