-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2022-03-02 at 20:52 +0100, Carlos E. R. wrote:
On Wednesday, 2022-03-02 at 22:00 +0300, Andrei Borzenkov wrote:
Ah, wait... you say "Still, systemd will start units listed in target's OnFailure when target start job failed".
So, maybe edit "sleep.target"
...
Well, we'll see if it works :-)
Thanks for the idea.
I tried hibernate minutes ago (which worked), and then I noticed ● sleep.target - Sleep Loaded: loaded (/usr/lib/systemd/system/sleep.target; static) Drop-In: /etc/systemd/system/sleep.target.d └─override.conf Active: inactive (dead) Docs: man:systemd.special(7) Mar 02 20:38:49 Telcontar systemd[1]: /etc/systemd/system/sleep.target.d/override.conf:1: Assignment outside of section. Ignoring. Telcontar:~ # cat /etc/systemd/system/sleep.target.d/override.conf OnFailure=sleepfailure.service Telcontar:~ # Ah. [Unit] OnFailure=sleepfailure.service Will try another hibernate in an hour or so. - -- Cheers, Carlos E. R. (from openSUSE 15.3 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYh/VWxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVE1IAnRBdaFvPU77i8Fhl7cxO InT/DbOLAJoCBHeOdmnuKhtmqQfYJOFva2ikSQ== =yv5j -----END PGP SIGNATURE-----