Bug 1018335
Summary: | various timing parameters have an incorrect USec suffix in systemctl show output, such as RestartUSec, TimeoutUSec, etc. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew J. Schorr <aschorr> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | johannbg, lnykryn, msekleta, plautrba, swadeley, systemd-maint, vpavlin, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-13 18:11:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrew J. Schorr
2013-10-11 17:38:45 UTC
Well, "systemctl show" shows low-level properties, as exposed on the bus. They use usec as base unit. The user friendly versions you can specify on unit files however use seconds as base unit. This assymetry is simply because one is a low-level interface, primarily intended for usage in tools, the other being a user-friendly interface for humans. That would make sense if the actual values reported were in microsecond units. But how does it make sense to say: TimeoutStartUSec=1min 30s ?? I think either of these makes sense: TimeoutStartUSec=90000000 or TimeoutStartSec=1min 30s But the choice you have made seems very strange to me. I obviously have zero votes in this matter, but the current behavior is very counterintuitive. Regards, Andy Actually, on 2nd thought, what would make more sense is to avoid having a unit of time in the parameter's name. Shouldn't it simply be: TimeoutStartTime=1min 30s ? That makes infinitely more sense to me. Regards, Andy Well, we really shouldn't rename the bus properties in systemctl show. If you want the rawest values possible you can use "gdbus introspect" on the units, which will show you the usec values actually as integers. |