Skip to content

Commit

Permalink
tests: add test that journald keeps fds over termination by signal
Browse files Browse the repository at this point in the history
This test fails before previous commit, and passes with it.

(cherry picked from commit bff653e)
(cherry picked from commit ee8f69a)
Resolves: #1757704
  • Loading branch information
evverx authored and Jan Synacek committed Feb 4, 2020
1 parent ec481c9 commit f39284d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/TEST-04-JOURNAL/test-journal.sh
Expand Up @@ -22,5 +22,13 @@ sleep 3
systemctl stop forever-print-hola
[[ ! -f "/i-lose-my-logs" ]]

# https://github.com/systemd/systemd/issues/4408
rm -f /i-lose-my-logs
systemctl start forever-print-hola
sleep 3
systemctl kill --signal=SIGKILL systemd-journald
sleep 3
[[ ! -f "/i-lose-my-logs" ]]

touch /testok
exit 0

0 comments on commit f39284d

Please sign in to comment.