]> 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 16:21:09 +0000 (09:21 -0700)
commit0c630a5a2de74ad5aac9ae8b36acc77596f51a14
tree649f5bd7d5232b3d5dff3af74497cc98552d2b8f
parent2a4c703895f1de5cbe5bbc928413fa452464a75a
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>
(cherry picked from commit 342ae45c0038924ed937479fc07908782253a85b)
tests/ftests/systemd.py