Re: [systemd-devel] scheduling services first during shutdown/reboot

2025-02-13 Thread Olaf Hering
Wed, 12 Feb 2025 20:54:08 +0300 Andrei Borzenkov : > session-.scope While also this does shift things around, it does not what one would expect. Not a problem, thanks for your help. Olaf pgp93cN0jK6tN.pgp Description: Digitale Signatur von OpenPGP

Re: [systemd-devel] scheduling services first during shutdown/reboot

2025-02-12 Thread Andrei Borzenkov
12.02.2025 16:35, Olaf Hering wrote: What is the proper way to run a service as the very first unit when the system goes down? I want to run it before systemd stops active sessions with "Stopping Session N of User $user...". It seems that "After=session-N.scope" does have the desired effect, but

[systemd-devel] scheduling services first during shutdown/reboot

2025-02-12 Thread Olaf Hering
What is the proper way to run a service as the very first unit when the system goes down? I want to run it before systemd stops active sessions with "Stopping Session N of User $user...". It seems that "After=session-N.scope" does have the desired effect, but I may have to list every possible valu