-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize BlueChi's systemd units on boot #864
Comments
To optimize the bluechi-controller and bluechi-agent boot the After parameter was vhange to dbus.service Solves: eclipse-bluechi#864 Signed-off-by: Artiom Divak <[email protected]>
To optimize the bluechi-controller and bluechi-agent boot the After parameter was change to dbus.service Solves: eclipse-bluechi#864 Signed-off-by: Artiom Divak <[email protected]>
To optimize the bluechi-controller and bluechi-agent boot the After parameter was change to dbus.service Solves: eclipse-bluechi#864 Signed-off-by: Artiom Divak <[email protected]>
I don't think you even need dbus.service. All it needs dbus.socket, but i believe that is a dependency of basic.target via sockets.target, and basic.target is a default dependency for all services. |
Ah, I see you drop the default deps, but still you only need dbus.socket to be able to start bluechi. It will then block startup until dbus-broker accepts the connection. |
Honestly though, I'm not sure starting before basic.target is right. I wouldn't recommend disabling the default dependencies, as you will basically have a half-configured system at that point. |
I agree and think we shouldn't implement this. If such optimizations are needed, these optimizations can be done outside of BlueChi itself. Lets close this. |
Please describe what you would like to see
Currently, the
bluechi-agent
andbluechi-controller
are startedAfter=network.target
. This special target is only weakly defined and there isAs an alternative, network-online.target is mentioned. However, it states there:
As well as:
Since both BlueChi components, controller and agent, require only the DBus to be up and running locally, the ordering on boot can be optimized to
After=dbus.service
.Please describe the solution you'd like
The systemd units of
bluechi-agent
andbluechi-controller
are changed to:The text was updated successfully, but these errors were encountered: