initctl: monitor and condition control over the bus

The bus can already answer questions and change services, so give
initctl the two things it still did another way: watching signals as
they happen, and getting or setting user conditions.

The dbus tests move with it, split by area rather than one file that
grew every time the library did.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2026-08-13 09:28:14 +02:00
parent 0a269f3298
commit dd1390a6c2
13 changed files with 854 additions and 980 deletions
+7 -1
View File
@@ -15,7 +15,13 @@ make -C "$top_builddir" DESTDIR="$SYSROOT" install
mkdir -p "$SYSROOT/sbin/"
cp "$top_builddir/test/src/serv" "$SYSROOT/sbin/"
if [ -x "$top_builddir/test/src/dbus-auth-client" ]; then
# Prefer the real ELF in .libs/ over the libtool wrapper script --
# since the test client links libink.la, libtool wraps the top-level
# dbus-auth-client as a shell script that re-execs the real binary
# via its own RPATH, which falls apart inside the test namespace.
if [ -x "$top_builddir/test/src/.libs/dbus-auth-client" ]; then
cp "$top_builddir/test/src/.libs/dbus-auth-client" "$SYSROOT/sbin/"
elif [ -x "$top_builddir/test/src/dbus-auth-client" ]; then
cp "$top_builddir/test/src/dbus-auth-client" "$SYSROOT/sbin/"
fi