2021-01-26 15:08:37 +00:00
|
|
|
# Syslogd as a System Service
|
|
|
|
|
|
|
|
## Systemd
|
|
|
|
|
2021-01-29 10:18:08 +00:00
|
|
|
Edit the **syslogd.service** and configure required options.
|
2021-01-26 15:08:37 +00:00
|
|
|
|
|
|
|
To install as a systemd service, copy the **syslogd.service**
|
|
|
|
file into */etc/systemd/system/* and enable the service:
|
|
|
|
|
2022-12-08 12:55:25 +00:00
|
|
|
```shell
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable syslogd.service
|
|
|
|
systemctl restart syslogd.service
|
|
|
|
```
|
2021-01-26 15:08:37 +00:00
|
|
|
|
|
|
|
To read log output from the service, use:
|
|
|
|
|
2022-12-08 12:55:25 +00:00
|
|
|
```shell
|
|
|
|
journalctl -f -u syslogd.service
|
|
|
|
```
|