| 1 |
[Unit] |
| 2 |
Description=System Logging Service |
| 3 |
Requires=syslog.socket |
| 4 |
Documentation=man:rsyslogd(8) |
| 5 |
Documentation=man:rsyslog.conf(5) |
| 6 |
Documentation=https://www.rsyslog.com/doc/ |
| 7 |
|
| 8 |
[Service] |
| 9 |
Type=notify |
| 10 |
ExecStart=/usr/sbin/rsyslogd -n -iNONE |
| 11 |
StandardOutput=null |
| 12 |
Restart=on-failure |
| 13 |
|
| 14 |
# Increase the default a bit in order to allow many simultaneous |
| 15 |
# files to be monitored, we might need a lot of fds. |
| 16 |
LimitNOFILE=16384 |
| 17 |
|
| 18 |
CapabilityBoundingSet=CAP_BLOCK_SUSPEND CAP_CHOWN CAP_DAC_OVERRIDE CAP_LEASE CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_ADMIN CAP_SYS_RESOURCE CAP_SYSLOG |
| 19 |
SystemCallFilter=@system-service |
| 20 |
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX |
| 21 |
NoNewPrivileges=yes |
| 22 |
PrivateTmp=yes |
| 23 |
PrivateDevices=yes |
| 24 |
ProtectHome=yes |
| 25 |
ProtectSystem=full |
| 26 |
ProtectKernelTunables=yes |
| 27 |
ProtectKernelModules=yes |
| 28 |
ProtectClock=yes |
| 29 |
ProtectControlGroups=yes |
| 30 |
ProtectHostname=yes |
| 31 |
|
| 32 |
[Install] |
| 33 |
WantedBy=multi-user.target |
| 34 |
Alias=syslog.service |