]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests/systemd: add method to check if systemd support
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 6 Dec 2023 15:37:44 +0000 (15:37 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 7 Dec 2023 15:58:13 +0000 (08:58 -0700)
commit342ae45c0038924ed937479fc07908782253a85b
treec3b5216239b84ba63039629dc230412595bd8a1a
parent45a36684facb8dcc75803ddcf09976730254a5f7
ftests/systemd: add method to check if systemd support

Add a method to check if libcgroup is compiled with --enable-systemd
support. The newly introduced is_systemd_enabled(), calls systemd C
function is_systemd_enabled(), that return true if configured with
--enable-systemd, false otherwise.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/systemd.py