Summary: | RFE: systemctl should assume ".service" extension for units if no extension is provided | ||
---|---|---|---|
Product: | systemd | Reporter: | Denis Washington <denisw> |
Component: | general | Assignee: | Lennart Poettering <lennart> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Denis Washington
2011-07-19 14:28:36 UTC
I agree with the sentiment... What about being a little smarter, and looking through a list of types appropriate to given command following rules similar to bash-completion? Similar in the sense that rules in systemctl could be slightly simplified, to err on the side of proposing to many units. I think we should really try hard not to be too smart here. I.e. appending ".service" if no suffix is giving I think is a good idea, because it is very deterministic, and can be done offline, on other hosts (which is nice for systemctl -H) and always yields the same result. But if we'd complete the name based on the unit names currently loaded things would become much less deterministic (i.e. they might end up doing different things on different setups), and couldn't be done offline anymore. Fixed in git. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.