X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-journal-flush.service.in;h=98c91b4bc5c50f9ce281117554cbb13c025b8137;hp=503e8a63b812b5da8f1bebb0a08092f49b185f24;hb=baade8cc237c37bd8905d86ec6e9c7872d4abe03;hpb=f274ece0f76b5709408821e317e87aef76123db6 diff --git a/units/systemd-journal-flush.service.in b/units/systemd-journal-flush.service.in index 503e8a63b..98c91b4bc 100644 --- a/units/systemd-journal-flush.service.in +++ b/units/systemd-journal-flush.service.in @@ -6,13 +6,16 @@ # (at your option) any later version. [Unit] -Description=Trigger Flushing of Journal to Persistent Storage +Description=Flush Journal to Persistent Storage Documentation=man:systemd-journald.service(8) man:journald.conf(5) DefaultDependencies=no Requires=systemd-journald.service -After=systemd-journald.service local-fs.target remote-fs.target -Before=systemd-user-sessions.service +After=systemd-journald.service +After=systemd-remount-fs.service +Before=systemd-user-sessions.service systemd-tmpfiles-setup.service +RequiresMountsFor=/var/log/journal [Service] -ExecStart=@rootbindir@/systemctl kill --kill-who=main --signal=SIGUSR1 systemd-journald.service +ExecStart=@rootbindir@/journalctl --flush Type=oneshot +RemainAfterExit=yes