ff2b41
From 39ab4de70c6f2b35ec735195803f4bd1eb5892c1 Mon Sep 17 00:00:00 2001
ff2b41
From: Evgeny Vereshchagin <evvers@ya.ru>
ff2b41
Date: Thu, 20 Oct 2016 13:18:12 +0000
ff2b41
Subject: [PATCH] tests: add test that journald keeps fds over termination by
ff2b41
 signal
ff2b41
ff2b41
This test fails before previous commit, and passes with it.
ff2b41
ff2b41
(cherry picked from commit bff653e3970bb79832568ae86b095ee530b62302)
ff2b41
(cherry picked from commit ee8f69ae5ddac6f05c56ea7dbcb76fbbb2e355ee)
ff2b41
Resolves: #1803802
ff2b41
---
ff2b41
 test/TEST-04-JOURNAL/test-journal.sh | 8 ++++++++
ff2b41
 1 file changed, 8 insertions(+)
ff2b41
ff2b41
diff --git a/test/TEST-04-JOURNAL/test-journal.sh b/test/TEST-04-JOURNAL/test-journal.sh
ff2b41
index 701b0cf724..d0b05c46d6 100755
ff2b41
--- a/test/TEST-04-JOURNAL/test-journal.sh
ff2b41
+++ b/test/TEST-04-JOURNAL/test-journal.sh
ff2b41
@@ -22,5 +22,13 @@ sleep 3
ff2b41
 systemctl stop forever-print-hola
ff2b41
 [[ ! -f "/i-lose-my-logs" ]]
ff2b41
 
ff2b41
+# https://github.com/systemd/systemd/issues/4408
ff2b41
+rm -f /i-lose-my-logs
ff2b41
+systemctl start forever-print-hola
ff2b41
+sleep 3
ff2b41
+systemctl kill --signal=SIGKILL systemd-journald
ff2b41
+sleep 3
ff2b41
+[[ ! -f "/i-lose-my-logs" ]]
ff2b41
+
ff2b41
 touch /testok
ff2b41
 exit 0