systemd-journal-flush.service 731 B

12345678910111213141516171819202122
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. [Unit]
  8. Description=Flush Journal to Persistent Storage
  9. Documentation=man:systemd-journald.service(8) man:journald.conf(5)
  10. DefaultDependencies=no
  11. Requires=systemd-journald.service
  12. After=systemd-journald.service
  13. After=systemd-remount-fs.service
  14. Before=systemd-user-sessions.service systemd-tmpfiles-setup.service
  15. RequiresMountsFor=/var/log/journal
  16. [Service]
  17. ExecStart=/bin/journalctl --flush
  18. Type=oneshot
  19. RemainAfterExit=yes
  20. TimeoutSec=90s