[systemd-devel] How to list frozen units

2024-11-20 Thread bbaovanc
Hi, How can I get a list of all currently frozen units or cgroups in systemd? I want to make a menu where I can freeze and unfreeze units (using wofi) by choosing from a list, but I'd like to limit the options when unfreezing to only units that are currently frozen.

Re: [systemd-devel] generators, private /tmp

2024-11-20 Thread Lennart Poettering
On Mi, 20.11.24 21:42, James Muir (jamesmui) (james...@cisco.com) wrote: > > > Hi everyone, > > > > > > The system manager (as of v253) executes generators in a sandbox with a > > > fresh tmpfs mount on /tmp: > > > > > > > > > https://github.com/systemd/systemd/blob/a526b9ddfc03a290f20a65c0a73

Re: [systemd-devel] generators, private /tmp

2024-11-20 Thread James Muir (jamesmui)
> > Hi everyone, > > > > The system manager (as of v253) executes generators in a sandbox with a > > fresh tmpfs mount on /tmp: > > > > > > https://github.com/systemd/systemd/blob/a526b9ddfc03a290f20a65c0a73792e73029f1b8/src/core/manager.c#L4274 > > > > Looking at the code, it appears that ther

Re: [systemd-devel] Fwd: System fails to create zram on startup, but I can do so manually

2024-11-20 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 20, 2024 at 04:03:22PM +0100, Torstein Sørnes wrote: > I have now set it to > ``` > [zram0] > zram-size = 32*1024 > ``` > and tried > ``` > sudo systemctl daemon-reload > sudo systemctl restart systemd-zram-setup@zram0 > ``` > nov. 20 16:01:21 D2S3Q34 zram-generator[162009]: Device

Re: [systemd-devel] sd-varlink: how to loop over connections?

2024-11-20 Thread Thorsten Kukuk
On Wed, Nov 20, 2024 at 3:23 PM Lennart Poettering wrote: > > On Mi, 20.11.24 14:51, Thorsten Kukuk (ku...@suse.com) wrote: > > > Hi, > > > > I'm currently playing with sd-varlink and trying to replace dbus in > > one of our daemon with sd-varlink. Not that trivial without > > documentation... > >

Re: [systemd-devel] Fwd: System fails to create zram on startup, but I can do so manually

2024-11-20 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Nov 07, 2024 at 07:35:43PM +0100, Michal Koutný wrote: > Hello Torstein. > > On Tue, Nov 05, 2024 at 03:51:31PM GMT, Torstein Sørnes > wrote: > > I have a Fedora 41 laptop with 32GB of ram. > > > > On startup, this shows in the journal: > > ``` > > nov. 05 13:58:32 D2S3Q34 zram-generato

Re: [systemd-devel] Fwd: System fails to create zram on startup, but I can do so manually

2024-11-20 Thread Torstein Sørnes
I have now set it to ``` [zram0] zram-size = 32*1024 ``` and tried ``` sudo systemctl daemon-reload sudo systemctl restart systemd-zram-setup@zram0 ``` But it fails with ``` Job for systemd-zram-setup@zram0.service failed because the control process exited with error code. See "systemctl status sys

Re: [systemd-devel] sd-varlink: how to loop over connections?

2024-11-20 Thread Lennart Poettering
On Mi, 20.11.24 14:51, Thorsten Kukuk (ku...@suse.com) wrote: > Hi, > > I'm currently playing with sd-varlink and trying to replace dbus in > one of our daemon with sd-varlink. Not that trivial without > documentation... > > My currently biggest question I couldn't solve is: how should a daemon >

[systemd-devel] sd-varlink: how to loop over connections?

2024-11-20 Thread Thorsten Kukuk
Hi, I'm currently playing with sd-varlink and trying to replace dbus in one of our daemon with sd-varlink. Not that trivial without documentation... My currently biggest question I couldn't solve is: how should a daemon listen to connections? There is "sd_varlink_server_loop_auto()", but this ex

Re: [systemd-devel] Fwd: System fails to create zram on startup, but I can do so manually

2024-11-20 Thread Andy Pieters
On Fri, 8 Nov 2024 at 18:31, Torstein Sørnes wrote: > I get an error that the device is not found even though it seems to exist > with ls. > $ /usr/lib/systemd/system-generators/zram-generator --setup-device > /dev/zram0 > (base) 19:25:17 > Error: Device /dev/zram0 not found > $ ls -

Re: [systemd-devel] DHCPServer SendOption 121 classless static route

2024-11-20 Thread Matthias Hörger
This works. Thanks Adam Nielsen schrieb am Mi., 20. Nov. 2024, 10:00: > > How would I go about sending the DHCP server option 121 - classless > static > > route? > > > > https://datatracker.ietf.org/doc/html/rfc3442 > > > > The datatypes for SendOption are uint8, uint16, uint32, ipv4address, >

Re: [systemd-devel] DHCPServer SendOption 121 classless static route

2024-11-20 Thread Adam Nielsen
> How would I go about sending the DHCP server option 121 - classless static > route? > > https://datatracker.ietf.org/doc/html/rfc3442 > > The datatypes for SendOption are uint8, uint16, uint32, ipv4address, > ipv6address, and string. > > I tried a few different types and combinations. They eit

Re: [systemd-devel] Fwd: System fails to create zram on startup, but I can do so manually

2024-11-20 Thread Torstein Sørnes
Do you have any more advice on this? On Fri, Nov 8, 2024 at 7:26 PM Torstein Sørnes wrote: > I get an error that the device is not found even though it seems to exist > with ls. > $ /usr/lib/systemd/system-generators/zram-generator --setup-device > /dev/zram0 > (base) 19:25:17 > Err

[systemd-devel] DHCPServer SendOption 121 classless static route

2024-11-20 Thread Matthias Hörger
Hi, How would I go about sending the DHCP server option 121 - classless static route? https://datatracker.ietf.org/doc/html/rfc3442 The datatypes for SendOption are uint8, uint16, uint32, ipv4address, ipv6address, and string. I tried a few different types and combinations. They either fail duri