On Di, 08.09.20 08:45, Belisko Marek ([email protected]) wrote:

> Hi,
>
> I'm using yocto build systemd and I'm using openssh server which
> create sshd.socket + [email protected] files. With socket I can control if
> ssh is enabled / disabled. I have an application which expects to
> check statu of ssh.service. I tried to add Alias=ssh.service to
> sshd.socket file and tried systemd enable sshd.socket but systemd
> cannot see ssh.service. Is there some other way to create a link to an
> existing socket file? Thanks

No, systemd refuses to recognize unit symlinks that change unit type
(i.e. the unit suffix after the dot) as aliases. It also doesn't
accept symlinks that change if a unit is templated or not. Objects
can't magically change their type, and they cannot suddenly
become/stop being templated or not.

Sorry,

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to