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

Ryan Gonzalez rymg19 at gmail.com
Thu Aug 16 14:35:00 UTC 2018


I believe the errors are based on errno:
http://www.virtsync.com/c-error-codes-include-errno

Return status 3 -> ESRCH -> No such process

On Thu, Aug 16, 2018, 6:27 AM Cecil Westerhof <cldwesterhof at gmail.com>
wrote:

> The man page of systemctl says:
>     On success, 0 is returned, a non-zero failure code otherwise.
>
> When I do a systemctl status on a service that is not running I get a 3.
> What other values can be returned and where do I find those?
>
>
> --
> Cecil Westerhof
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-- 

Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180816/a9b56a7d/attachment.html>


More information about the systemd-devel mailing list