Return codes of systemctl (status)

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

 



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>


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

  Powered by Linux