]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-07-PID1: add reprudcer for issue #35190 36186/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Jan 2025 13:24:16 +0000 (22:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 28 Jan 2025 19:58:24 +0000 (04:58 +0900)
test/units/TEST-07-PID1.transient.sh [new file with mode: 0755]

diff --git a/test/units/TEST-07-PID1.transient.sh b/test/units/TEST-07-PID1.transient.sh
new file mode 100755 (executable)
index 0000000..ae71a38
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -ex
+set -o pipefail
+
+journalctl --sync
+TS="$(date '+%H:%M:%S')"
+
+systemd-run -u hogehoge.service sleep infinity
+systemctl daemon-reload
+systemctl stop hogehoge.service
+
+journalctl --sync
+[[ -z "$(journalctl -b -q --since "$TS" -u hogehoge.service -p notice)" ]]