aoliveir d03ab8fa54 Fix syslog-ng: config, service and package
Following the man page and document:

https://manpages.debian.org/unstable/syslog-ng-core/
syslog-ng.conf.5.en.html
https://www.freedesktop.org/wiki/Software/systemd/syslog/

The definition of the syslog-ng service file was changed to use
"Requires" instead of "Sockets" on the Unit section.
On CentOS, the version of syslog-ng is older, and these docs seems to
apply to newer versions (CentOS: 2015 vs Debian: 2020).
Also, the source for the messages on syslog-ng config file should be
changed since a socket is used on the journal: syslog.socket.
(socket: /run/systemd/journal/syslog)
The syslog-ng package had to add an explicit enable on the service
to have the override applied on the service.

Test Plan:

PASS: ISO build successfully
PASS: ISO installed successfully
PASS: After installation syslog.socket and syslog-ng are Running
PASS: Upon adding "management_interface=lo" to platform.conf
mtce logs start to appear

Story: 2009256
Task: 44598
Signed-off-by: aoliveir <adriano.oliveira@windriver.com>
Change-Id: I66a2800d1639890cdbd5972d9f018215580da46c
2022-02-23 21:46:44 +00:00

17 lines
371 B
Desktop File

[Unit]
Description=System Logger Daemon
Documentation=man:syslog-ng(8)
Requires=syslog.socket
[Service]
Type=notify
ExecStartPre=-/usr/bin/mkdir -p /var/run/syslog-ng/
ExecStart=/usr/sbin/syslog-ng -F -p /var/run/syslog-ng/syslog-ng.pid
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=syslog.service