[systemd-devel] systemctl is-active

vcaputo at pengaru.com vcaputo at pengaru.com
Mon Jan 15 23:35:47 UTC 2018


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.
> 

It appears "is-active" was added to systemctl as part of:

 commit ee5762e3780c048b230e8c1e7659e40fc1f443bf
 Author: Lennart Poettering <lennart at poettering.net>
 Date:   Sat Jul 24 00:53:33 2010 +0200
 
     systemctl: fold systemd-install into systemctl
 

The earliest tagged release this commit made it into according to
`git tag --contains ee5762e378` is v4.

Regards,
Vito Caputo


More information about the systemd-devel mailing list