diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-28 00:49:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-28 00:50:35 +0200 |
commit | 6524990fdc98370ecba5d9f73e67161e8798c010 (patch) | |
tree | 870ed57ed3c756dd34a0223692d1ec5b9e5ef44d /units | |
parent | 2001208c2ab631a69896d1f670c26846b70d1fb7 (diff) |
logind: support for hybrid sleep (i.e. suspend+hibernate at the same time)
Diffstat (limited to 'units')
-rw-r--r-- | units/.gitignore | 1 | ||||
-rw-r--r-- | units/hybrid-sleep.target | 13 | ||||
-rw-r--r-- | units/systemd-hybrid-sleep.service.in | 17 |
3 files changed, 31 insertions, 0 deletions
diff --git a/units/.gitignore b/units/.gitignore index c72e2cbee3..63c7ba06bb 100644 --- a/units/.gitignore +++ b/units/.gitignore @@ -1,3 +1,4 @@ +/systemd-hybrid-sleep.service /systemd-journal-gatewayd.service /systemd-journal-flush.service /systemd-hibernate.service diff --git a/units/hybrid-sleep.target b/units/hybrid-sleep.target new file mode 100644 index 0000000000..d2d3409225 --- /dev/null +++ b/units/hybrid-sleep.target @@ -0,0 +1,13 @@ +# 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] +Description=Hybrid Suspend+Hibernate +Documentation=man:systemd.special(7) +DefaultDependencies=no +BindsTo=systemd-hybrid-sleep.service +After=systemd-hybrid-sleep.service diff --git a/units/systemd-hybrid-sleep.service.in b/units/systemd-hybrid-sleep.service.in new file mode 100644 index 0000000000..914b686c36 --- /dev/null +++ b/units/systemd-hybrid-sleep.service.in @@ -0,0 +1,17 @@ +# 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] +Description=Hybrid Suspend+Hibernate +Documentation=man:systemd-suspend.service(8) +DefaultDependencies=no +Requires=sleep.target +After=sleep.target + +[Service] +Type=oneshot +ExecStart=@rootlibexecdir@/systemd-sleep hybrid-sleep |