[arch-general] systemd's journal and syslog-ng
ianux
ianux at free.fr
Thu Feb 16 15:41:13 EST 2012
Le 16/02/12, Tobias Frilling <tobias at frilling-online.de> a écrit :
> On 02/16/2012 07:13 PM, ianux wrote:
> > What's the difference between this syslog-ng.service file and the
> > one from syslog-ng ?
> > Beside the Alias line, you only duplicate the Sockets line which
> > already exists.
>
> Yeah, the duplication was an accident (might have happened out of
> frustration). My prior setup lacked the journal/syslog socket, so I
> thought that the service file was missing a Sockets= entry (reading
> the file might have helped ;-) ). The service file shipped with
> syslog-ng does the trick, as long as you point the config to
> journal/syslog. As for the Alias line, consider this comment from
> syslog.socket:
>
> # The default syslog implementation should make syslog.service a
> # symlink to itself, so that this socket activates the right actual
> # syslog service.
> #
> # Examples:
> #
> # /etc/systemd/system/syslog.service
> -> /lib/systemd/system/rsyslog.service
> # /etc/systemd/system/syslog.service
> -> /lib/systemd/system/syslog-ng.service # # Best way to achieve that
> is by adding this to your unit file # (i.e. to rsyslog.service or
> syslog-ng.service): #
> # [Install]
> # Alias=syslog.service
The Alias line now makes sense to me. It links syslog-ng.service to
syslog.socket which create /run/systemd/journal/syslog. Thanks for the
tip (logging through /run/systemd/journal/socket indeed looks like
garbage).
--
radio ianux - http://ianux.fr/
More information about the arch-general
mailing list