diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-30 18:38:21 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-30 18:39:52 -0500 |
commit | a39b4bdd10fc15654db37459fe8235a3de1ad817 (patch) | |
tree | 946ea345a6aa9cbc12be2ad25500c8656927829a /test/exec-privatetmp-no.service | |
parent | caffa4ef700fdd0eadd6c0b2ef9925611672a1bc (diff) |
systemctl: do not repeat hibernate/sleep attempts
If some sleep operation was not possible (e.g. because swap is missing),
we would try twice: once through logind, which would result in a clean error:
Failed to execute operation: Sleep verb not supported
and then second time by starting the appropriate unit directly, which is
more messy. If logind tells us that something is not possible (or already
in progress), report that to the user and quit. If logind is present and working
we should not try to work around it.
Loosely based on https://bugs.freedesktop.org/show_bug.cgi?id=87832.
Diffstat (limited to 'test/exec-privatetmp-no.service')
0 files changed, 0 insertions, 0 deletions