Merge "Fix syslog-ng: config, service and package"
This commit is contained in:
commit
d208d91176
|
@ -63,8 +63,10 @@ options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
|
|||
# This is the default behavior of sysklogd package
|
||||
# Logs may come from unix stream, but not from another machine.
|
||||
#
|
||||
source s_src { systemd-journal(); internal();
|
||||
file("/proc/kmsg" program_override("kernel") );
|
||||
source s_src {
|
||||
systemd-syslog();
|
||||
file("/proc/kmsg" program-override("kernel") flags(kernel));
|
||||
internal();
|
||||
};
|
||||
|
||||
# If you wish to get logs from remote machine you should uncomment
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[Unit]
|
||||
Description=System Logger Daemon
|
||||
Documentation=man:syslog-ng(8)
|
||||
Requires=syslog.socket
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
Sockets=syslog.socket
|
||||
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
|
||||
|
|
|
@ -9,4 +9,6 @@ cp /usr/share/starlingx/syslog-ng.service /usr/lib/systemd/system/syslog-ng.serv
|
|||
chmod 700 /usr/sbin/fm_event_syslogger
|
||||
chmod 755 /usr/sbin/sshlog
|
||||
|
||||
systemctl enable syslog-ng.service > /dev/null 2>&1 || :
|
||||
|
||||
#DEBHELPER#
|
||||
|
|
Loading…
Reference in New Issue