dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
5808e7
From ce6531045b337c3f793d1d74f1e5641e658805bb Mon Sep 17 00:00:00 2001
5808e7
From: Lennart Poettering <lennart@poettering.net>
5808e7
Date: Fri, 5 Apr 2019 18:22:31 +0200
5808e7
Subject: [PATCH] units: automatically revert to /run logging on shutdown if
5808e7
 necessary
5808e7
5808e7
Fixes: #867
5808e7
(cherry picked from commit 1e187d2dd52cbb4f0bb30e4d96acf7f72a145b91)
5808e7
5808e7
Resolves: #1873540
5808e7
---
5808e7
 units/systemd-journal-flush.service.in | 1 +
5808e7
 1 file changed, 1 insertion(+)
5808e7
5808e7
diff --git a/units/systemd-journal-flush.service.in b/units/systemd-journal-flush.service.in
5808e7
index 439f5f3f76..653dcebe0e 100644
5808e7
--- a/units/systemd-journal-flush.service.in
5808e7
+++ b/units/systemd-journal-flush.service.in
5808e7
@@ -19,6 +19,7 @@ RequiresMountsFor=/var/log/journal
5808e7
 
5808e7
 [Service]
5808e7
 ExecStart=@rootbindir@/journalctl --flush
5808e7
+ExecStop=@rootbindir@/journalctl --smart-relinquish-var
5808e7
 Type=oneshot
5808e7
 RemainAfterExit=yes
5808e7
 TimeoutSec=90s