2020-11-09 05:23:58 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2018-03-08 14:17:33 +01: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]
|
2018-03-28 22:13:49 +02:00
|
|
|
Description=Suspend; Hibernate if not used for a period of time
|
2018-03-08 14:17:33 +01:00
|
|
|
Documentation=man:systemd-suspend.service(8)
|
|
|
|
DefaultDependencies=no
|
|
|
|
Requires=sleep.target
|
|
|
|
After=sleep.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2018-03-28 18:00:06 +02:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-sleep suspend-then-hibernate
|