]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-hibernate-clear.service.in
Merge pull request #31648 from neighbourhoodie/review-content
[thirdparty/systemd.git] / units / systemd-hibernate-clear.service.in
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Clear Stale Hibernate Storage Info
12 Documentation=man:systemd-hibernate-clear.service(8)
13
14 ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
15 ConditionPathExists=!/etc/initrd-release
16
17 DefaultDependencies=no
18 Before=sysinit.target shutdown.target
19 Conflicts=shutdown.target
20
21 [Service]
22 Type=oneshot
23 RemainAfterExit=yes
24 ExecStart={{LIBEXECDIR}}/systemd-hibernate-resume --clear