-
Notifications
You must be signed in to change notification settings - Fork 302
WantedBy doesn't lead to starting service #1382
Comments
afaik, the [Install] section is not used by fleet. [Install] is used by systemd when you run e.g. 'systemctl enable foo.service'. fleet does not 'enable' units. it starts or stops them. |
The resulting unit looks as it should in Btw I'm loading all of them, I just think that |
I think what you really want here is #464 so I'm going to close this in favour of that, please re-open if you feel otherwise. |
What I'm reporting here is this :
BUT
@jonboulle you probably thought that I'm not |
We could potentially achieve this using EnableUnitFiles. Worth investigating. |
@jonboulle you mean we should try what happens if we always enable unit files after loading them? (Or maybe before starting? Don't know which is more appropriate...) |
@antrik Right - instead of just writing them to disk and doing a |
We can use this method to process only |
There is no |
|
Hey,
I have 2 services
es
andes-discovery
...es
needses-discovery
. Ifes
declaresWants=es.discovery.service
everything works as expected and when I startes
thenes-discovery
is started too. But if I declareWantedBy=es
ines-discovery
service then units are created properly (es unit Wants es-discovery) butes-discovery
never starts. This is the result of loading both but starting justes
: http://pastebin.com/raw.php?i=kmATHbGDes@.service
:es-discovery@.service
If I just move
WantedBy
fromes-discovery
toWants
ines
then it works... But I needWantedBy
becausees
service shouldn't know about the discovery...If I start the service explicitly afterwards, it starts...
I suspect that the problem might be that the ExecStart process blocks because there is never ending while loop.
The text was updated successfully, but these errors were encountered: