!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

479 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org124 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
19 Mar 2025
@lotte:chir.rsCharlotte 🦝 (it/its)
In reply to @elvishjerricco:matrix.org
do other container systems integrate as nicely with systemd as nspawn does? e.g. nspawn will use sd_notify to signal when the container is ready, so that you can order units after container@foo.service and have that mean the right thing
OH
10:25:14
@lotte:chir.rsCharlotte 🦝 (it/its)i was confused on that front10:25:29
@lotte:chir.rsCharlotte 🦝 (it/its)i was wondering how to depend on container@postgres.service and actually have another service/container start when postgres is ready?10:25:57
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @elvishjerricco:matrix.org
do other container systems integrate as nicely with systemd as nspawn does? e.g. nspawn will use sd_notify to signal when the container is ready, so that you can order units after container@foo.service and have that mean the right thing
Not really i guess, but its not impossible to get working. You can use SDNOTIFY the socket from within the container to signal ready when you reach multi-user.target manually
10:26:13
@magic_rb:matrix.redalder.orgmagic_rbI had to script that for NixNG as its not running systemd so systemd wont do it itself10:26:30
@elvishjerricco:matrix.orgElvishJerricco I think it'll signal that it's started when default.target is reached 10:26:38
@magic_rb:matrix.redalder.orgmagic_rbAlso i think systemd on the inside doesnt care at all about the outside runtime. Itll signal ready if it sees the socket, so it might just work10:26:53
@magic_rb:matrix.redalder.orgmagic_rbI seem to recall that from reading the code10:27:06
@elvishjerricco:matrix.orgElvishJerricconeat10:27:14
@lotte:chir.rsCharlotte 🦝 (it/its)which like i didn’t see much documentation on this so i thought this was simply unsupported10:27:25
@magic_rb:matrix.redalder.orgmagic_rb Ill try with runc, will add it to my infinite list of side projects 10:27:36
@lotte:chir.rsCharlotte 🦝 (it/its)even though, honestly, kinda important10:27:36
@elvishjerricco:matrix.orgElvishJerriccoyea it wouldn't surprise me if systemd just knows how to do this stuff implicitly and nspawn isn't actually doing anything special10:27:43
@magic_rb:matrix.redalder.orgmagic_rbThere might be quirks if we go for rootless, but nothing that couldnt be solved10:28:07
@steveej0:matrix.orgsteveej what i really like about systemd-nspawn is the integration with machinectl and journalctl -M and journalctl -m 10:36:35
@bun:nixfox.caMonarch 🥖 (they/them) joined the room.23:13:58
20 Mar 2025
@xsrp:matrix.orgsrp joined the room.03:16:20
@xsrp:matrix.orgsrp changed their display name from Seraphim Pardee to srp.03:19:03
@alex:acrawford.comalex joined the room.19:53:20
21 Mar 2025
@0rzklv:matrix.org@0rzklv:matrix.org left the room.00:30:00
@the_wiz:matrix.coredump.online@the_wiz:matrix.coredump.online joined the room.08:50:14
22 Mar 2025
@jappie3:matrix.org@jappie3:matrix.org left the room.13:26:54
@the_wiz:matrix.coredump.online@the_wiz:matrix.coredump.online left the room.19:48:54
@icarus_dh:matrix.org@icarus_dh:matrix.org removed their profile picture.21:48:28
@icarus_dh:matrix.org@icarus_dh:matrix.org removed their display name icarus_dh.21:48:55
@icarus_dh:matrix.org@icarus_dh:matrix.org left the room.21:49:22
25 Mar 2025
@aadniz:knaben.orgAdnan Zaman joined the room.13:55:38
27 Mar 2025
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.04:46:31

Show newer messages


Back to Room ListRoom Version: 10