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

Re: No feedback from systemd / "systemctl stop X"... Nothing on stdout, nothing that `echo $?` can see...



On Wed, 11 Mar 2015, Martinx - ジェームズ wrote:
>  But, I'm not seeing the same behavior when using systemd commands...
> I mean, how can I "track" systemd if it does provides any kind of
> "usual" outputs to stdout?
>
>  What am I missing?

If you want to know what the status of a service, you run

systemctl status foo;

If you want to test to see if a service is running, use:

systemctl is-active foo;


-- 
Don Armstrong                      http://www.donarmstrong.com

"She decided what she wished to happen and then assumed that reality
would bend to her wishes." [...] "Reality doesn't indulge wishes."
 -- Terry Goodkind _Phantom_ p133


Reply to: