source s_kernel { file ("/proc/kmsg" program_override("kernel: ")); };
source s_src { unix-stream("/dev/log"); internal(); };
+# if using systemd, comment out the two lines above, and uncomment line below
+#source s_src { unix-dgram("/run/systemd/journal/syslog"); internal(); };
destination d_mail { file("/var/log/maillog"); };
destination d_messages { file("/var/log/messages"); };
destination d_kernel { file("/var/log/kernel"); };
destination d_console_all { file("/dev/tty12"); };
+filter f_kern { facility(kern); };
filter f_mail { facility(mail); };
log { source(s_kernel); destination(d_kernel); };
+# if using systemd, comment out the line above, and uncomment line below
+#log { source(s_src); filter(f_kern); destination(d_kernel); };
log { source(s_src); destination(d_console_all); };
log { source(s_src); filter(f_mail); destination(d_mail); };
log { source(s_src); destination(d_messages); flags(fallback); };
--- syslog-ng-3.3.1/contrib/systemd/syslog-ng.service~ 2011-09-09 09:14:53.000000000 +0200
+++ syslog-ng-3.3.1/contrib/systemd/syslog-ng.service 2011-11-29 18:24:53.010449488 +0100
-@@ -2,9 +2,10 @@
+@@ -2,11 +2,13 @@
Description=System Logger Daemon
[Service]
-+EnvironmentFile=/etc/sysconfig/syslog-ng
++EnvironmentFile=-/etc/sysconfig/syslog-ng
Sockets=syslog.socket
- ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
+-ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
-ExecStart=/usr/sbin/syslog-ng -F
++ExecStartPre=-/bin/systemctl stop systemd-kmsg-syslogd.service
+ExecStart=/sbin/syslog-ng -F -f /etc/syslog-ng/syslog-ng.conf --worker-threads=1024
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
+ [Install]
+ WantedBy=multi-user.target
++Alias=syslog.service
source s_sys {
file ("/proc/kmsg" program_override("kernel"));
unix-stream("/dev/log" max-connections(1000) log_iw_size(100000));
+# if using systemd, comment out the two line above, and uncomment line below
+# unix-dgram("/run/systemd/journal/syslog");
internal();
};
# uncomment the line below if you want to setup syslog server
#source s_net { udp(); };
+# if using systemd, an IP address instead of name may be required here
#destination d_loghost { udp("loghost" port(514)); };
destination d_kern { file("/var/log/kernel"); };
Summary(pl.UTF-8): Syslog-ng - systemowy demon logujący nowej generacji
Summary(pt_BR.UTF-8): Daemon de log nova geração
Name: syslog-ng
-Version: 3.3.4
-Release: 9
+Version: 3.3.5
+Release: 0.1
License: GPL v2+ with OpenSSL exception
Group: Daemons
Source0: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz
-# Source0-md5: 8e1bc6bb55a6545dcf0329b982c82a44
+# Source0-md5: a69e725854301ecda26dbe51f3a10645
Source1: %{name}.init
Source2: %{name}.conf
Source3: %{name}.logrotate
%endif
Requires(post): fileutils
Requires(post,preun): /sbin/chkconfig
+Requires(post,preun,postun): systemd-units >= 0.38
Requires: %{name}-libs = %{version}-%{release}
Requires: eventlog >= 0.2.12
Requires: glib2 >= %{glib2_ver}
%service syslog-ng restart "syslog-ng daemon"
%systemd_post syslog-ng.service
-ln -sf /lib/systemd/system/syslog-ng.service /etc/systemd/system/syslog.service || :
%preun
if [ "$1" = "0" ]; then