<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 11, 2021, 13:17 Ulrich Windl <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I have a unit that uses logger, and I want to run it after syslog is available. So I added syslog.socket as dependency, but it fails:<br>
Mar 11 12:11:02 jeos1 systemd[1]: syslog.socket: Socket service syslog.service not loaded, refusing.<br>
Mar 11 12:11:02 jeos1 systemd[1]: Failed to listen on Syslog Socket.<br>
<br>
Doesn't journald also "provide" syslog.socket?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes but no. "Syslog.socket" is specifically for internal forwarding *from* journald to an external syslogd.</div><div dir="auto"><br></div><div dir="auto">What you're looking for (the journald *input* socket that's used by other programs) is actually "systemd-journald-dev-log.socket".</div><div dir="auto"><br></div><div dir="auto">Usually there should be no need to explicitly order against it, as normal services are already indirectly ordered after sockets.target as a whole. You'll only need an After if you're using DefaultDependencies=no.</div></div>