Timeline for How to write a Systemd unit that will fire before networking goes down
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 25, 2021 at 23:03 | comment | added | travisjayday | network.service did not work for me neither | |
| May 22, 2019 at 18:09 | comment | added | Greg Dubicki |
Firstly, networking.service did not work for me. Secondly, freedesktop.org/wiki/Software/systemd/NetworkTarget says that you should use After=network-online.target + Wants=network-online.target. Can you edit your answer, @MarkStosberg ?
|
|
| Mar 25, 2019 at 14:16 | comment | added | Mark Stosberg |
@richremer Compare for yourself the contents of network.target and networking.service on your system. You'll see they are different. Here I think using a .service is more appropriate, because a target is a like a "goal state" to boot up to. "Stopping a goal state" doesn't make as much sense as "stopping a service". In fact, either may work, but I think using a service is clearer here.
|
|
| Mar 22, 2019 at 19:54 | comment | added | rich remer |
Is this any different than After=network.target?
|
|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Jul 5, 2016 at 17:56 | history | edited | Mark Stosberg | CC BY-SA 3.0 |
add missing word.
|
| S Jul 5, 2016 at 16:33 | history | suggested | Alex Stragies | CC BY-SA 3.0 |
Some tiny changes to make a good answer even better/clearer.
|
| Jul 5, 2016 at 16:25 | review | Suggested edits | |||
| S Jul 5, 2016 at 16:33 | |||||
| Jul 5, 2016 at 16:22 | history | answered | Mark Stosberg | CC BY-SA 3.0 |