Support systemd-notify
#8977
waltmck
started this conversation in
Feature requests & Ideas
Replies: 1 comment
-
|
Thanks for digging into this and suggesting a solution, I'll add it to our backlog :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have checked if others have suggested this already
Feature description
In order to use
zerotieralongsidemullvad, I am using the providedmullvad-daemon.servicefile to run Mullvad and the following service file to start Zerotier (with irrelevant parts excluded):Unfortunately, there is an intractable race condition between
mullvad-daemonmounting thenet_clscgroup controller andmullvad-excludetrying to use this controller. On startup this manifests inzerotierone.servicefailing repeatedly withmullvad-exclude[PID]: No net_cls controlleruntil the controller is actually mounted (or just failing ifRestart=is not configured).The idiomatic systemd solution to this is to use
Type=notify, and for the daemon to issue a notification when it is finished setting up, that way services with anAfter=dependency can know when to start.Alternative solutions
The only feasible alternative is to set
Restart=alwayson services which depend onmullvad-exclude, which is undesirable as it needlessly slows down boot times.Type of feature
Operating System
Beta Was this translation helpful? Give feedback.
All reactions