-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
RFE: use socket activation on systemd systems #230
Comments
Do you know how easy it is to create a |
@YHNdnzj I've been reading a bit on socket creation in the docs I was wondering if the I wonder if a dependency Can you provide some guidance here? |
Hmm, I don't understand what you're trying to do here? What I'm proposing is to make |
To implement systemd's socket activation, |
No, wait, but that's not the issue mentioned on #221. I'm trying to make it in a way that the daemon waits/checks if the block device is already available. Can we do that using and extra the CLI (ydotool) is not even part of the equation there, and that is the one that communicates via the socket file. |
I think the cause of the original issue is that the user service starts before the session is started. And because the access to By switching the |
oh, so you mean that the first call from the CLI will start the daemon... and then the but wouldn't that mean a big delay the first call from ydotool happens? Meaning that the first time someone would use it, the delay would be considerable... only because we can't check if the |
Well, you'd be surprised how many services on your system are actually socket/dbus-activated ;-) Try run |
I liked it! I'll soon try it out, what do you recommend for the case where one is either starting ydotoold manually or not using systemd? I don't want it to be dependend on it. That in this case ydotoold falls back to creating the socket itself? (e.g. expects a socket on /path/example, and if not there, creates one) Never done something like this, want to |
Yes. If ydotoold didn't acquire the connection fd from a call to |
In the context of #221, busy retrying should be the last resort. Instead, it's cleaner and probably more efficient to support systemd's socket activation mechanism and only start the daemon when there's a connection.
The text was updated successfully, but these errors were encountered: