Re: Any defined exit code for a generator?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Do., 9. Mai 2019 um 12:29 Uhr schrieb Ulrich Windl
<Ulrich.Windl@xxxxxxxxxxxxxxxxxxxx>:
>
> Hi!
>
> The manual page of generators does not talk about exit codes in case of an error. Is there any handling of exit codes in systemd?

exit codes > 0 returned by the generator are treated as errors and
systemd will log about this when the generator is run. You'll get an
error message like this in the journal:

Mai 09 12:41:46 pluto systemd[1]: Reloading.
Mai 09 12:41:47 pluto systemd[5481]:
/lib/systemd/system-generators/test failed with exit status 1.

Can you be more specific about you are trying to do?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux