<div dir="ltr"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-im">2018-08-16 16:35 GMT+02:00 Ryan Gonzalez <span dir="ltr"><<a href="mailto:rymg19@gmail.com" target="_blank">rymg19@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I believe the errors are based on errno: <a href="http://www.virtsync.com/c-error-codes-include-errno" target="_blank">http://www.virtsync.com<wbr>/c-error-codes-include-errno</a><div><br></div><div>Return status 3 -> ESRCH -> No such process<br></div></blockquote><div> </div></span><div><div class="gmail_default">Thanks I will look into that.<br></div><div class="gmail_default"><br><br>I think it is not completely correct. For example if I do:<br></div><div class="gmail_default"> systemctl status dummy<br><br></div><div class="gmail_default">This gives as description:<br> Unit dummy.service could not be found.<br><br></div><div class="gmail_default">And the error code that is returned is 4.<br></div><div class="gmail_default">I
would not say that a non existing service is an interrupted service
call. I would find 22 (invalid argument) more logical. But it all
depends how you interpret things.<div class="gmail-yj6qo gmail-ajU"><div id="gmail-:4fi" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><div class="gmail-adL"><br></div></div></div><div class="gmail-adL"><span class="gmail-im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><div><div class="gmail-m_-1600404804684946357gmail-h5"><div dir="ltr">On Thu, Aug 16, 2018, 6:27 AM Cecil Westerhof <<a href="mailto:cldwesterhof@gmail.com" target="_blank">cldwesterhof@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_-1600404804684946357gmail-h5"><div dir="ltr"><div>The man page of systemctl says:<br> On success, 0 is returned, a non-zero failure code otherwise.<br><br></div><div>When I do a systemctl status on a service that is not running I get a 3.<br></div><div>What other values can be returned and where do I find those?</div></div></div></div></blockquote></div></div></blockquote></span></div></div><span class="gmail-HOEnZb gmail-adL"><font color="#888888"><br>-- <br><div class="gmail-m_-1600404804684946357gmail_signature">Cecil Westerhof</div>
</font></span></div></div><div class="gmail_extra"><div class="gmail_signature" data-smartmail="gmail_signature"></div>
</div></div>