From: Lennart Poettering Date: Fri, 5 Apr 2019 16:22:31 +0000 (+0200) Subject: units: automatically revert to /run logging on shutdown if necessary X-Git-Tag: v243-rc1~461^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e187d2dd52cbb4f0bb30e4d96acf7f72a145b91;p=thirdparty%2Fsystemd.git units: automatically revert to /run logging on shutdown if necessary Fixes: #867 --- diff --git a/units/systemd-journal-flush.service.in b/units/systemd-journal-flush.service.in index bacfe51d6f3..29b006cba57 100644 --- a/units/systemd-journal-flush.service.in +++ b/units/systemd-journal-flush.service.in @@ -18,6 +18,7 @@ RequiresMountsFor=/var/log/journal [Service] ExecStart=@rootbindir@/journalctl --flush +ExecStop=@rootbindir@/journalctl --smart-relinquish-var Type=oneshot RemainAfterExit=yes TimeoutSec=90s