From d930bd63000bbbde334c8dc0e6b92db3f4bbdd16 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 4 Feb 2025 19:53:18 +0000 Subject: [PATCH] autopkgtest: setup-host server: fall back to starting rsyslogd by hand Signed-off-by: Ian Jackson --- adt/acommon | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/adt/acommon b/adt/acommon index 714245a..bd863c3 100644 --- a/adt/acommon +++ b/adt/acommon @@ -173,7 +173,14 @@ finish-setup-host-server () { in- server iptables -N empty ||: in- server iptables -I INPUT -j empty -s 192.0.2.0/24 rsyslog-capture-daemon in- server - in- server service rsyslog start + + in- server service rsyslog start || { + # When the outer system is systemd, `service` doesn't find it + # in the chroot, but the init script is in orphan-sysvinit-scripts + # which is also missing. Run it by hand. + in- server rsyslogd -n & + sleep 5 + } } in- () { -- 2.30.2