[systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-28 Thread Christoph Anton Mitterer
Hey folks. I guess many people nowadays will run without any swap for the normal paging use, but only have it for hibernation (at least on laptops). Since there's nothing yet like [0] I wanted to set up systemd to automatically start/stop the swap right before/after hibernate/resume. And I also

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-28 Thread Lennart Poettering
On Di, 28.03.23 08:13, Stephan Bergmann (sberg...@redhat.com) wrote: > On 27/03/2023 13:38, Lennart Poettering wrote: > > another idea: can't you just wrap your tests in "systemd-run --scope > > --user --name=somtestid47110815.scope" or so? we pick up unit > > names in coredump handling. With

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-28 Thread Mantas Mikulėnas
On Tue, Mar 28, 2023 at 9:13 AM Stephan Bergmann wrote: > On 27/03/2023 13:38, Lennart Poettering wrote: > > another idea: can't you just wrap your tests in "systemd-run --scope > > --user --name=somtestid47110815.scope" or so? we pick up unit > > names in coredump handling. With that you'd run

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-28 Thread Stephan Bergmann
On 28/03/2023 08:13, Stephan Bergmann wrote: * Is there a grammar for those --unit=X resp. COREDUMP_USER_UNIT=X'.scope values?  I noticed that at least "/" in X gets replaced with "-" in X'. found

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-28 Thread Stephan Bergmann
On 27/03/2023 13:38, Lennart Poettering wrote: another idea: can't you just wrap your tests in "systemd-run --scope --user --name=somtestid47110815.scope" or so? we pick up unit names in coredump handling. With that you'd run yur tests inside a scope unit, and can then use that as key in