Re: [systemd-devel] systemctl is-active command returns inactive even if the unit does not exist

2018-01-24 Thread Michael Chapman
On Thu, 25 Jan 2018, Kevin Hsu wrote: Hi folks, "systemctl is-active" command gives "inactive" no matter the unit exists and indeed inactive or it just not exist. This behavior is semantically true since a unit can never be active if it does not exist. But "systemctl is-enabled" command will

[systemd-devel] systemctl is-active command returns inactive even if the unit does not exist

2018-01-24 Thread Kevin Hsu
Hi folks, "systemctl is-active" command gives "inactive" no matter the unit exists and indeed inactive or it just not exist. This behavior is semantically true since a unit can never be active if it does not exist. But "systemctl is-enabled" command will give a clear result "Failed to get unit

Re: [systemd-devel] systemctl is-active

2018-01-15 Thread vcaputo
On Tue, Jan 16, 2018 at 12:17:52AM +0100, Michał Zegan wrote: > Hello. > When systemctl is-active was added? > I need this to check if I can safely use it to check if unit is active > if I don't have prior knowledge about the systemd version I am running > this on, this is for an ansible playbook.

[systemd-devel] systemctl is-active

2018-01-15 Thread Michał Zegan
Hello. When systemctl is-active was added? I need this to check if I can safely use it to check if unit is active if I don't have prior knowledge about the systemd version I am running this on, this is for an ansible playbook. signature.asc Description: OpenPGP digital signature