units: automatically revert to /run logging on shutdown if necessary
Fixes: #867
This commit is contained in:
parent
c0dfcb318c
commit
1e187d2dd5
|
@ -18,6 +18,7 @@ RequiresMountsFor=/var/log/journal
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@rootbindir@/journalctl --flush
|
ExecStart=@rootbindir@/journalctl --flush
|
||||||
|
ExecStop=@rootbindir@/journalctl --smart-relinquish-var
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
TimeoutSec=90s
|
TimeoutSec=90s
|
||||||
|
|
Loading…
Reference in a new issue