Osteste | Hi, | 13:36 |
---|---|---|
Osteste | Anybody has an idea, how I could possibly modify config files that netplan is creating? In my case I would like to start the wpa_supplicant executable verbose. But when I modify the corresponding service file in /run/systemd/system/netplan-wpa*.service it will be overwritten by the "netplan apply" command. | 13:36 |
slyon | Osteste: hi! yes, you can use systemd override configs | 13:37 |
slyon | in your case you could create a corresponding file in /etc/systemd/system/netplan-wpa*.service.d/override.conf and put the sections you want to change in there | 13:38 |
slyon | the override.conf will be applied on top of netplan's config in /run/systemd/... | 13:39 |
Osteste | Sounds like a plan! Didn't know about overwrites. DO I have to use the whole file, or just the diff? | 13:40 |
slyon | just the diff is enough. see https://unix.stackexchange.com/questions/398540/how-to-override-systemd-unit-file-settings for reference | 13:41 |
Osteste | Thank you! I am about to test this out... | 13:43 |
slyon | yw | 13:43 |
Osteste | I used "systemctl edit netplan-wpa-wlp1s0.service" to add a modified ExecStart line of the unit/service file, and it created the override file in /etc. But even after a "systemctl daemon-reload" the apply netplan still starts with the old line created by netplan in /run folder. Did I miss something? | 13:58 |
slyon | ah I think ExecStart= is a special case, you might need to put an empty "ExecStart=" into your override.conf before adding the new "ExecStart=<you config>" afterwards | 14:01 |
slyon | as ExecStart= can be specified multiple times | 14:01 |
Osteste | so two lines into that file, one "ExecStart=" and the other like I want it to become? .. let's try. | 14:04 |
Osteste | still no changes in the command line arguments of my wpa_supplicant service, even after reapplying netplan and restarting according service. | 14:07 |
slyon | hmm I think it should be 3 lines in that file. as you need to specify the "[Service]" section, too | 14:08 |
Osteste | Not sure what you mean. | 14:11 |
Osteste | Just the word "[Service]" in a line to let the parser know what section of the unit the line belongs to? | 14:11 |
Osteste | That worked out, thanks!! | 14:14 |
slyon | yes exactly :) | 14:16 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!