[systemd-devel] enable/disable swap before/after hibernation

2016-07-28 Thread Lukas Pirl
Dear list, I want to enable/disable the swap partition before/after hibernation. However, it seems I cannot get the service to run early enough to avoid the error: Failed to hibernate system via logind: Sleep verb not supported The .service file looks as follows: [Unit] Description=…

Re: [systemd-devel] enable/disable swap before/after hibernation

2016-07-29 Thread Lukas Pirl
> If clients ask logind whether hibernation is available or try to > initiate hibernation we check whether swap is available and refuse > if it isn't. This means if you add the swap only after the > hibernation was already initiated then this will not be able to > affect the check anymore. I