(Sorry, I didn't send to the list before)
>>> Ulrich Windl <ulrich.wi...@rz.uni-regensburg.de> schrieb am 09.05.2019 um 
>>> 14:34
in Nachricht <5cd44ccd.ed38.00a...@rz.uni-regensburg.de>:
>>>> Michael Biebl <mbi...@gmail.com> schrieb am 09.05.2019 um 12:43 in 
>>>> Nachricht
> <cagwsdojspwxrvzmy1jq9eccciprnt0qto3dwkbegsyknvlb...@mail.gmail.com>:
> > Am Do., 9. Mai 2019 um 12:29 Uhr schrieb Ulrich Windl
> > <ulrich.wi...@rz.uni-regensburg.de>:
> >>
> >> 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.
> 
> OK, I see: I had missed those. Once you know what you are looking for, it's 
> easy to find.
> 
> > 
> > Can you be more specific about you are trying to do?
> 
> Write a generator ;-)
> Actually my generator has a few problems it can detect and report through 
> exit codes, so I wondered what systemd does with those:
> 
> I have:
> * Success
> * Failure (generic)
> * Syntax error
> * Permission problem
> * Installation problem (e.g. missing files)
> * Configuration problem (e.g. missing configuration files)
> * Unexpected problem (most likely a programming error in the generator)
> 
> Regards,
> Ulrich
> 
> 
> 




_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to