rsyslog/rsyslog.service.in
Michael Biebl 2aecaa8536 Install syslog.service Alias for newer systemd versions
From the syslog.socket unit file of newer systemd versions:

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

http://cgit.freedesktop.org/systemd/systemd/tree/units/syslog.socket#n26
2012-03-02 11:00:15 +01:00

13 lines
252 B
SYSTEMD

[Unit]
Description=System Logging Service
[Service]
ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
ExecStart=@sbindir@/rsyslogd -n -c5
Sockets=syslog.socket
StandardOutput=null
[Install]
WantedBy=multi-user.target
Alias=syslog.service