NixOS systemd | 610 Members | |
| NixOS ❤️ systemd | 165 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Jun 2021 | ||
| I recently upgraded my server and the borgmatic service I wrote broke seemingly due to systemd-inhibit https://0x0.st/-LI7.txt, so I want to remove the systemd-inhibit call and just run borgmatic directly. I did that but I'm still getting the same error. Is the override not working or something? here's systemd cat: https://0x0.st/-Llq.txt | 19:48:44 | |
| as you can see in the cat, most of the overrides are redundant because I wrote the service before I realized there was a nixos module providing it | 19:49:23 | |
| and this is the ExecStart override:
| 19:50:55 | |
| so I don't know how systemd-inhibit is still getting involved since I removed the call to it from ExecStart, anyone see anything in the cat paste that I don't understand? | 19:51:34 | |
| and running borgmatic manually still works so I'm pretty sure it's something with NixOS and the systemd upgrade | 19:52:33 | |
| uh oh | 20:11:11 | |
Note how ExecStart must be cleared before being re-assigned [1]. The same holds for every item that can be specified multiple times, e.g. OnCalendar for timers. | 20:11:29 | |
Nix does not seem to do this, so overriding script will not work | 20:11:59 | |
* Nix does not seem to do this, so overriding systemd.services.<name>.script will not work | 20:12:30 | |
| Arian: can I force Nix to override the whole unit rather than doing the conf stuff? | 20:15:12 | |
| You can as a workaround do: ``` serviceConfig.ExecStart = [ "" "new executable"] ; ``` | 20:15:36 | |
| * You can as a workaround do: ``` yourService.serviceConfig.ExecStart = [ "" "new executable"] ; ``` | 20:16:04 | |
I currently have a multiline script, what's a good way to reference that | 20:16:52 | |
I basically reimplemented the script option to get that working. so the workaround finally works at least, but I'm still confused what's wrong with systemd-inhibit on NixOS. guess I'll open an issue | 20:43:30 | |
| Yes please! | 20:46:45 | |
| 16 Jun 2021 | ||
| Any ideas what I could be doing wrong if this is my .network file:
but
| 12:44:16 | |
| * Any ideas what I could be doing wrong if this is my .network file:
but
| 12:44:22 | |
| * Any ideas what I could be doing wrong if this is my .network file:
but
| 12:44:30 | |
| might be worth noting that this is a l2tp session configured with networkd, although it really shouldn't make a difference | 12:44:58 | |
| What's the config of the bridge (br0)? | 12:45:25 | |
| 12:45:44 | |
| Having an address on there probably doesn't hurt, but since this is a L2 tunnel, it really doesn't make much sense. Especially not a IPv4LL. | 12:46:44 | |
| do you have dhcpcd running? | 12:49:58 | |
| 🤦♂️ yes. why would I though. | 12:50:32 | |
| because 🤦♂️ | 13:04:44 | |
| problem solved? | 13:05:03 | |
| yep, thanks | 14:00:39 | |
| Redacted or Malformed Event | 19:53:08 | |
| 17 Jun 2021 | ||
| 01:09:32 | ||
| 02:59:43 | ||