mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 22:10:41 +01:00
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
13 lines
252 B
SYSTEMD
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
|