Summary: | RFE: Make linking an instance service to a non-instance name possible | ||
---|---|---|---|
Product: | systemd | Reporter: | calimeroteknik |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED INVALID | QA Contact: | systemd-bugs |
Severity: | enhancement | ||
Priority: | medium | CC: | nroycea+freedesktop |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
calimeroteknik
2014-01-04 23:18:39 UTC
+1 on this for me. I just encountered this issue where I keep my scripts and service/timer files in my Documents folder and simply want to link to the files in that folder. It would just make things easier to have the file linked so I can make changes to the file and have it reflected to a location that gets backed-up. Nope, can't do that. We'd have a situation where the unit would both have an instance and not have an instance. This would confuse things to no end. That said, it is possible to link an instance name to a unit file outside of the unit search path, and then the symlink target can be arbitrary, it doesn't even have to be a valid unit name: $ ln -sf '/etc/systemd/system/mydisplaymanager@.service' '/etc/systemd/system/display-manager.service' → not OK $ cp /etc/systemd/system/mydisplaymanager@.service /etc/display_manager_service $ ln -s /etc/display_manager_service '/etc/systemd/system/display-manager.service' → OK |
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.