-
Notifications
You must be signed in to change notification settings - Fork 38
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
ListUnits method doesn't get unit of service generated by quadlet #887
Comments
Hi @dofmind, Good question.
If I understand this correctly, the
So if you add to ...
[Install]
WantedBy=multi-user.target Then it should get listed by $ systemctl daemon-reload
# shouldn't show anything since sample-app-b.service is inactive
$ systemctl list-units | grep sample
# --all needed
$ systemctl list-units --all | grep sample
sample-app-a.service loaded active running The sample application container
sample-app-b.service loaded inactive dead The sample application container NOTE: $ systemctl enable sample-app-b.service
Failed to enable unit: Unit /run/systemd/generator/sample-app-b.service is transient or generated. But creating such an artificial dependency just so it get the unit listed by |
Ah, my question has been resolved. Thank you for your reply. If BlueChi has a |
Yeah, let's change this ticket to RFE to add ListUnitFiles functionality |
The ListUnits method does not get the unit of service generated by quadlet when the service is inactive, even if the service is loaded.
The sample-app-a and the sample-app-b are generated by quadlet using below files
After running only sample-app-a,
bluechictl list-units
command doesn't get information of sample-app-b.The sample-app-b is inactive but it is loaded.
systemdctl list-units --all
also has same result.Does anyone know why I can't get the unit of service generated by the quadlet?
The text was updated successfully, but these errors were encountered: