2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2012-07-11 00:41:16 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2014-11-01 17:52:14 +00:00
|
|
|
Description=Flush Journal to Persistent Storage
|
2012-07-11 00:41:16 +00:00
|
|
|
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
|
|
|
DefaultDependencies=no
|
|
|
|
Requires=systemd-journald.service
|
2018-10-24 19:41:02 +00:00
|
|
|
After=systemd-journald.service systemd-remount-fs.service
|
|
|
|
Before=systemd-tmpfiles-setup.service
|
2014-10-31 15:22:36 +00:00
|
|
|
RequiresMountsFor=/var/log/journal
|
2021-05-21 08:53:25 +00:00
|
|
|
ConditionPathExists=!/etc/initrd-release
|
2012-07-11 00:41:16 +00:00
|
|
|
|
|
|
|
[Service]
|
2019-12-18 08:14:57 +00:00
|
|
|
ExecStart=journalctl --flush
|
|
|
|
ExecStop=journalctl --smart-relinquish-var
|
2012-07-11 00:41:16 +00:00
|
|
|
Type=oneshot
|
2014-10-22 22:28:17 +00:00
|
|
|
RemainAfterExit=yes
|
2015-02-02 20:34:32 +00:00
|
|
|
TimeoutSec=90s
|