fix: Start after systemd-udev#863
fix: Start after systemd-udev#863ReillyBrogan wants to merge 1 commit intoilya-zlobintsev:masterfrom
Conversation
Having `After=multi-user.target` as well as `WantedBy=multi-user.target` isn't really a useful combination for a service since that means that systemd will wait for the rest of multi-user.target to be loaded before starting lactd.service and only once it finishes starting lactd.service will it continue with starting things that depend on multi-user.target. Doing that will increase time-to-login-manager by however long it takes lactd.service to start since the otherwise-parallel service startup will be blocked until that completes. Instead we can have it start after systemd-udev by which point the kernel modules should already be loaded. Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
|
I'm not sure about this change - from past testing (granted, this was a few years ago) waiting These days early init of the service should not be an issue, as it listens to DRM kernel events in order to pick up any other devices that may have been loaded since the service was started, but I still wouldn't want to entirely rely just on that.
Considering there is no readiness/health check in the service, is this a problem? SystemD should consider the service as starting instantly. |
Having
After=multi-user.targetas well asWantedBy=multi-user.targetisn't really a useful combination for a service since that means that systemd will wait for the rest of multi-user.target to be loaded before starting lactd.service and only once it finishes starting lactd.service will it continue with starting things that depend on multi-user.target. Doing that will increase time-to-login-manager by however long it takes lactd.service to start since the otherwise-parallel service startup will be blocked until that completes. Instead we can have it start after systemd-udev by which point the kernel modules should already be loaded.