2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2012-07-11 08:41:16 +08: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-02 01:52:14 +08:00
|
|
|
Description=Flush Journal to Persistent Storage
|
2012-07-11 08:41:16 +08:00
|
|
|
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
2022-09-15 21:54:18 +08:00
|
|
|
|
|
|
|
ConditionPathExists=!/etc/initrd-release
|
|
|
|
|
2012-07-11 08:41:16 +08:00
|
|
|
DefaultDependencies=no
|
2022-09-19 22:57:48 +08:00
|
|
|
After=systemd-remount-fs.service systemd-quotacheck-root.service
|
2018-10-25 03:41:02 +08:00
|
|
|
Before=systemd-tmpfiles-setup.service
|
2022-09-15 21:54:18 +08:00
|
|
|
Wants=systemd-journald.service
|
|
|
|
After=systemd-journald.service
|
2014-10-31 23:22:36 +08:00
|
|
|
RequiresMountsFor=/var/log/journal
|
2012-07-11 08:41:16 +08:00
|
|
|
|
2024-05-25 05:09:52 +08:00
|
|
|
Before=soft-reboot.target systemd-soft-reboot.service
|
|
|
|
Conflicts=soft-reboot.target
|
|
|
|
|
2012-07-11 08:41:16 +08:00
|
|
|
[Service]
|
2019-12-18 16:14:57 +08:00
|
|
|
ExecStart=journalctl --flush
|
|
|
|
ExecStop=journalctl --smart-relinquish-var
|
2012-07-11 08:41:16 +08:00
|
|
|
Type=oneshot
|
2014-10-23 06:28:17 +08:00
|
|
|
RemainAfterExit=yes
|
2015-02-03 04:34:32 +08:00
|
|
|
TimeoutSec=90s
|