2023-01-25 07:47:31 +00:00
|
|
|
# Syslogd as a system service
|
2021-01-26 15:08:37 +00:00
|
|
|
|
2023-01-25 07:47:31 +00:00
|
|
|
## For systemd
|
2021-01-26 15:08:37 +00:00
|
|
|
|
2023-01-25 07:47:31 +00:00
|
|
|
To install as a systemd service, copy the [syslogd.service](syslogd.service)
|
|
|
|
file into */etc/systemd/system/*, edit the file and configure your required options.
|
2021-01-26 15:08:37 +00:00
|
|
|
|
2023-01-25 07:47:31 +00:00
|
|
|
Enable and start the service:
|
2021-01-26 15:08:37 +00:00
|
|
|
|
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
|
|
|
|
```
|