Service values are translated (so you can't use them in scripts)
Bug #1941926 reported by
Ted Gould
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
https:/
The values that are put into the table of the service command are translated. This makes it so that having a script that checks for "active" is unreliable.
I understand if this is considered a "human" command, but there are no other machine commands that are available to get this data.
To post a comment you must log in.
Hi Ted :), thanks for reporting. I think I agree with you on that, and that would match systemctl behavior (also, we are not super consistent in that regard and many commands don't use translated strings); OTOH we generally encourage one to use snapd's REST API (added benefit is API stability, whereas the output of commands might change).
I'll see what I can do about it.