-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2022-03-16 at 19:38 +0100, Carlos E. R. wrote:
On 2022-03-16 18:05, Andrei Borzenkov wrote:
On 15.03.2022 14:13, Carlos E. R. wrote:
On Wednesday, 2022-03-02 at 21:36 +0100, Carlos E. R. wrote:
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.
After days of hibernation without problems, yesterday I had a failed one, but this service/script did not trigger.
Current status:
Telcontar:~ # systemctl cat sleep.target
Unit that failed was hibernate.target, not sleep.target.
Ah... Ok, will change. Thanks.
It worked! I had an hibernation failure just now, and the speaker warned me - I'm so happy :-) <3.5> 2022-03-18T23:09:28.639228+01:00 Telcontar systemd 1 - - systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE <3.4> 2022-03-18T23:09:28.639320+01:00 Telcontar systemd 1 - - systemd-hibernate.service: Failed with result 'exit-code'. <3.3> 2022-03-18T23:09:28.639369+01:00 Telcontar systemd 1 - - Failed to start Hibernate. <3.4> 2022-03-18T23:09:28.639424+01:00 Telcontar systemd 1 - - Dependency failed for Hibernate. <3.5> 2022-03-18T23:09:28.639478+01:00 Telcontar systemd 1 - - hibernate.target: Job hibernate.target/start failed with result 'dependency'. <3.6> 2022-03-18T23:09:28.639535+01:00 Telcontar systemd 1 - - hibernate.target: Triggering OnFailure= dependencies. <4.6> 2022-03-18T23:09:28.639693+01:00 Telcontar systemd-logind 1790 - - Operation 'sleep' finished. <3.6> 2022-03-18T23:09:28.641730+01:00 Telcontar systemd 1 - - Stopped target Sleep. <3.6> 2022-03-18T23:09:28.642693+01:00 Telcontar systemd 1 - - Starting Plays something when hibernate.target fails... <4.5> 2022-03-18T23:09:28.650125+01:00 Telcontar su - - - (to cer) root on none <10.6> 2022-03-18T23:09:28.657072+01:00 Telcontar su - - - pam_unix(su:session): session opened for user cer by (uid=0) <3.6> 2022-03-18T23:09:28.960935+01:00 Telcontar dbus-daemon 1569 - - [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service' requested by ':1.139' (uid=1000 pid=13378 comm="/usr/lib/xfce4-screensaver-dialog --monitor=0 --he") <3.6> 2022-03-18T23:09:28.963790+01:00 Telcontar systemd 1 - - Starting Accounts Service... <3.6> 2022-03-18T23:09:29.008433+01:00 Telcontar accounts-daemon 13419 - - started daemon version 0.6.55 <3.6> 2022-03-18T23:09:29.008602+01:00 Telcontar dbus-daemon 1569 - - [system] Successfully activated service 'org.freedesktop.Accounts' <3.6> 2022-03-18T23:09:29.008680+01:00 Telcontar systemd 1 - - Started Accounts Service. <1.4> 2022-03-18T23:09:29.008787+01:00 Telcontar accounts-daemon 13419 - - g_dbus_interface_skeleton_get_object_path: assertion 'G_IS_DBUS_INTERFACE_SKELETON (interface_)' failed <3.6> 2022-03-18T23:09:31.154795+01:00 Telcontar ModemManager 1815 - - <info> Couldn't check support for device '/sys/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:01.0/0000:22:00.0': not supported by any plugin <10.6> 2022-03-18T23:09:33.346148+01:00 Telcontar su - - - pam_unix(su:session): session closed for user cer <3.6> 2022-03-18T23:09:33.347105+01:00 Telcontar systemd 1 - - session-c2.scope: Succeeded. <3.6> 2022-03-18T23:09:33.381041+01:00 Telcontar Mine - - - Something failed on hibernate, sound play. <3.6> 2022-03-18T23:09:33.381702+01:00 Telcontar systemd 1 - - Finished Plays something when hibernate.target fails. The cause of hibernation failure is not relevant to this thread, but for completeness, it is: <3.3> 2022-03-18T23:09:28.541853+01:00 Telcontar systemd-sleep 12863 - - Failed to suspend system. System resumed again: Cannot allocate memory - -- Cheers, Carlos E. R. (from openSUSE 15.3 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYjUEvxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV6h0An0L8HMZLSUd7ZOoscmeF FaQOXkFpAJ44F4fuyrYotXuOG8R7LpmevhFbbg== =vwiJ -----END PGP SIGNATURE-----