-
Notifications
You must be signed in to change notification settings - Fork 302
Unit does not automatically start Required units #464
Comments
@dbubs I'd love to hear your thoughts on the new |
@bcwaldon the |
@dbubs We're considering adding an |
@jonboulle That would be perfect! |
Just to add: I seemed to 'solve' this by |
@qweet: fleet doesn't do any of that kind of management at all at this stage; |
+1000. This is really something we'd like to see. |
+1000. X-Requires, X-After, ... are needed desperately. |
Has any work been done on this? I really need this sort of functionality as well. |
@aberman No. We have not been focusing on increasing the scope of the cluster-level behaviors such as Requires, After, etc. |
I'd like to understand why the general feeling is that this needs to be a first-class behavior in fleet. Is it the pain of having to call |
@bcwaldon Less-short answer - From an automation standpoint, I would want to declare all of my unit requirements in the unit files and then only have to control (start, stop, destroy) a single unit and all of the "required" units automatically perform the same commands. I may not always run I hope that makes sense. :) |
I would like to see this happen as well. Especially since the sidekick paradigm seems to be suggested so often as a way to handle etcd registration. For me, if my unit files are set up as follows:
I would expect for my dependency bases to be covered. When I see the
This leads me to assume that if I type It was really unexpected for me that the tool doesn't do this since both the pieces are there. It caused me to spend a lot of time debugging unit files that were actually perfectly okay. In my troubleshooting, I came across quite a few other people who had made the same assumption. |
+1 Our use case is we want to run the docker registry in mirror mode and stick it on one of our nodes. We'd like this to be the first thing to come up before any other units which pull docker images do, so rather than coordinating through etcd, a more semantic approach supported by fleet would make our lives a lot easier. |
+1
|
+1 |
2 similar comments
👍 |
+1 |
+1 |
+1 |
Is this in the works right now? We'd also like to use this... and hit the same issues as @imchairmanm described. |
+1 |
2 similar comments
+1 |
+1 |
@bcwaldon - Are the previous explanations of why this is requested to be a first-class behaviour sufficient? |
Yes, I can see how supporting Requires in X-Fleet would be useful. |
+1 |
+10000, we need support this to make other management script simple. |
👍 |
+1 |
I would like to be able to start a single unit and have another required unit start automatically.
This may not be supported by fleet or I'm misunderstanding the systemd documentation, but from what I'm reading in the systemd.unit documentation I should be able to start a unit and it will automatically start any unit that is listed in the
Requires
. Is this possible or am I doing something wrong?This is a simple test:
busy.service
busy-watch.service
Add the units to fleet:
Units are available to run:
By starting busy.service, I would expect busy-watch.service to also start:
Neither units are running:
Just to make sure that the units are functional and that there are no syntax errors, I tried removing
Requires=busy-watch.service
and start both of the units together.The text was updated successfully, but these errors were encountered: