non zero exit codes for classes scripts
Martin Krämer
mk.maddin at gmail.com
Sat Oct 26 22:02:22 CEST 2019
Hi Thomas,
Thanks for your Investigation.
Yes - I was not able to find any related changes, too.
Unfortunately as you already expected task_error does not end the full process tree - only fai-class.
Never the less it helped me to find a good workaround which I use as follows:
>&2 echo "error: my critical message"
(kill -9 $PPID &)
task_error 123
Kind Regards
Martin Krämer
> On 26. Oct 2019, at 19:36, Thomas Lange <lange at informatik.uni-koeln.de> wrote:
>
> Hi Martin,
>
> I can find no change that causes a change in the behaviour for that
> between 5.8.1 and the newest FAI version. As you pointed out an "exit X"
> in a .sh script causes fai-class to stop defining more classes. You
> can try to set an error code inside a .sh file by using a call to
> task_error xxx. I'm not sure if this will work, since fai-class runs in a
> subprocess.
> After looking into the code it seems that fai-class almost always ends
> with exit 0.
>
> --
> regards Thomas
More information about the linux-fai
mailing list