[systemd-bugs] [Bug 73290] RFE: Make linking an instance service to a non-instance name possible

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 22 10:48:06 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=73290

Zbigniew Jedrzejewski-Szmek <zbyszek at in.waw.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #2 from Zbigniew Jedrzejewski-Szmek <zbyszek at in.waw.pl> ---
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 at .service'
'/etc/systemd/system/display-manager.service' → not OK
$ cp /etc/systemd/system/mydisplaymanager at .service /etc/display_manager_service
$ ln -s /etc/display_manager_service 
'/etc/systemd/system/display-manager.service' → OK

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-bugs/attachments/20190822/dd81dc5a/attachment-0001.html>


More information about the systemd-bugs mailing list