| 18 Feb 2025 |
gdamjan | oneshot services are considered started/activated only when the process ends. so not sure if sd_notify makes sense for them | 15:18:28 |
gdamjan | what's your use-case? | 15:18:32 |
@denkn:denkn.at | It is a long-running process and it would be nice to check the progress. Logging would be an option, but it is only noisy, nobody needs it later. | 20:25:11 |
@denkn:denkn.at | Eg backups. | 20:25:25 |
Arian | Just make it Type=notify if it's long-lived | 20:26:36 |
gdamjan | but then you'd … either loose ordering on the service, or risk the job timeout (ie how long systemd waits for a service to activate) | 23:22:30 |
Arian | No you don't. Ordering works with Type=notify | 23:24:16 |
Arian | Though the ordering will happen after The ready notification of course | 23:24:57 |
gdamjan | that's what I meant | 23:51:55 |
| 19 Feb 2025 |
ElvishJerricco | I wonder how hard it would be to do to systemd what we did to nix 2.26 and componentize the build | 06:17:06 |
ElvishJerricco | we might be able to rid ourselves of an awful lot of the superfluous systemd dependencies in nixpkgs if we could do that. | 06:17:52 |
Arian | We had multiple outputs build before | 07:36:34 |
Arian | Biggest problem is sd-path.h which i still dont understand why it was added. Pointless complexity that isn't used internally | 07:37:06 |
Arian | It causes a cyclic dependency between libsystemd and libsystemd-shared and libsystemd-core and cyclic dependency between libsystemd and some binaries iirc | 07:37:43 |
Arian | Basically turns it into one big mess. I don't understand why we have cycle detection in multiple output derivations though. Robert told me they might remove that feature from nix. But it never happened | 07:38:18 |
Arian | So yeh if we want it we need to either make nix support cyclic outputs (which should be fine from correctness standpoint I think?) or we need to **heavily** patch systemd | 07:38:49 |
Arian | * So yeh if we want it we need to either make nix support cyclic outputs (which should be fine from correctness standpoint I think?) or we need to **heavily** patch systemd | 07:39:16 |
Arian | * We had multiple outputs build before but it broke with the introduction of sd-path | 07:39:40 |
Arian | Ah but nix is multiple derivations? In that case heavy patching is the only solution. To get rid of the cycles between all of systemd's components | 07:40:36 |
ElvishJerricco | In reply to @arianvp:matrix.org Ah but nix is multiple derivations? In that case heavy patching is the only solution. To get rid of the cycles between all of systemd's components If we can do it in a way that seems like a benefit to upstream, then this isn't a problem | 09:28:23 |
ElvishJerricco | I'd have to understand that cyclic dependency better | 09:29:13 |
ElvishJerricco | Cyclic dependencies in general sound like a bad idea, so I imagine getting rid of it would be good for upstream too | 09:29:35 |
ElvishJerricco | The systemd-repart.create-root test appears to be failing nondeterministically: https://hydra.nixos.org/build/290085282 | 11:04:53 |
ElvishJerricco | I think that means systemd-fsck-root.service and systemd-repart.service are racing? | 11:05:23 |
@denkn:denkn.at | In reply to @arianvp:matrix.org Though the ordering will happen after The ready notification of course Thanks, yes, I call ready immidiatly, after starting, before the first bigger thing will be done. With ordering you meant, dependencies to this service, right? | 13:20:15 |
Arian | In reply to @elvishjerricco:matrix.org I'd have to understand that cyclic dependency better The whole path situation in systemd is a mess anyway. They're not using $prefix consistently . E.g. tmpfiles looks in /usr/lib
Given we could load all config from /etc anyway perhaps it's worth getting rid of all the $prefix dependencies in path lookups. Then sd-path stops having cyclic dependency | 14:20:42 |
Arian | Run the `systemd-path` executable. You'll immediately understand the cyclic dependency due to the output it prints | 14:21:36 |
| sss | 20:06:14 |
| 20 Feb 2025 |
| thursdaddy set a profile picture. | 00:14:02 |
| 21 Feb 2025 |
cleverca22 | having to fight systemd recovery mode today
somebody setup fstab to mount a device that didnt exist, on a headless machine
systemd had a panic attack, and refused to run ssh until somebody logged in on the "physical terminal" with the root pw (none was set), so the machine was basically bricked for 5 months, lol | 05:06:44 |