https://bugzilla.novell.com/show_bug.cgi?id=731876
https://bugzilla.novell.com/show_bug.cgi?id=731876#c1
Carsten Koch-Mauthe changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ckm@vienenbox.de
--- Comment #1 from Carsten Koch-Mauthe 2011-12-04 13:23:32 UTC ---
Same problem here.
syslog-ng fails on systemstart but can be started later if systems running.
Found it probably related to the source entry in syslog.ng.conf
source src {
#
# include internal syslog-ng messages
# note: the internal() soure is required!
#
internal();
#
# read kernel messages directly (12.x) or
# does klogd forward them via /dev/log?
#
file ("/proc/kmsg" program_override("kernel"));
#
# the following line will be replaced by the
# socket list generated by SuSEconfig using
# variables from /etc/sysconfig/syslog:
#
unix-dgram("/dev/log");
#
# uncomment to process log messages from network:
#
udp(ip("192.168.0.100") port(514));
};
I've activated syslog on specific network interface. It seems systemd will
start syslog-ng to early, when network is not completely ready.
I've changed /lib/systemd/system/syslog.service and added network.target in
Requires and After and since then it is working.
Strange thing is that network.target is already included in includefile
/run/systemd/syslog.core but probably systemd will not consider this entries.
====
# /lib/systemd/system/syslog.service
#
# This file is part of package klogd.
#
# Copyright (c) 2011 SuSE LINUX Products GmbH, Germany.
# Author: Werner Fink
# Please send feedback to http://www.suse.de/feedback
#
# Description:
#
# Used to start one of the System Logging Service daemons
# depending on the configuration found in /etc/sysconfig/syslog.
#
[Unit]
Description=System Logging Service
Requires=var-run.mount syslog.target network.target
After=var-run.mount network.target
Before=syslog.target
OnFailure=systemd-kmsg-syslogd.service
Conflicts=syslog-ng.service rsyslog.service
#
# Now systemd include the further dependency rules and
# Service section. This include will be automatically
# updated depending on the configuration.
#
include /run/systemd/syslog.core
[Install]
WantedBy=multi-user.target
===
Other thing is the missing afsql modul. syslog-ng --version shows
===
syslog-ng --version
syslog-ng 3.3.1
Installer-Version: 3.3.1
Revision:
ssh+git://bazsi@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.3#master#3a736e62b27f7036ab23b91cf0839a95d0185e18
Default-Modules:
affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat,afsql
Available-Modules:
afprog,afuser,csvparser,dummy,afsocket,basicfuncs,convertfuncs,syslogformat,dbparser,confgen,affile,afmongodb
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: on
===
so it is compiled with afsql as default modul but this modul is not available.
:-(
I've changed /etc/sysconfig/syslog and changed the syslog-ng parameters.
===
SYSLOG_NG_PARAMS="--default-modules=afprog,afuser,csvparser,dummy,afsocket,basicfuncs,convertfuncs,syslogformat,dbparser,affile,afmongodb"
===
Take care not to add the available modul confgen. This results here in a
segmentation fault on starting syslog-ng.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.