[systemd-devel] Return codes of systemctl (status)

Cecil Westerhof cldwesterhof at gmail.com
Thu Aug 16 17:05:20 UTC 2018


2018-08-16 18:51 GMT+02:00 Filipe Brandenburger <filbranden at google.com>:

> Agreed. In particular, man page for systemctl simply says "on success,
> 0 is returned, a non-zero failure code otherwise" for exit status. In
> other words, the specific non-zero exit codes are undocumented, so
> shouldn't be relied upon.
>

Personally I would say that when asking the status of a non running service
is not a failure, but that does return a 3. So I have to catch that.

-- 
Cecil Westerhof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180816/8499d355/attachment.html>


More information about the systemd-devel mailing list