Fix slow syslogd remote syslog startup and klogd interaction

Because syslogd is not properly started its remote syslog support when klogd dumps its kernel ring buffer content to it, most of the kernel boot output is missing on the remote syslog server. By adding a small delay between syslogd and klogd, we are sure the messages are properly send to the remote syslog by syslogd.
This commit is contained in:
Dag Wieers 2013-04-23 00:57:25 +02:00 committed by Stephan Raue
parent bc28e915ea
commit 75b3c30417

View File

@ -28,7 +28,7 @@
source /var/config/settings.conf
SYSLOGD_OPTIONS="-L -D"
SYSLOGD_OPTIONS="-L"
if [ "$SYSLOG_REMOTE" == "true" -a "$SYSLOG_SERVER" ]; then
SYSLOGD_OPTIONS="-R $SYSLOG_SERVER $SYSLOGD_OPTIONS"
@ -40,6 +40,8 @@
syslogd $SYSLOGD_OPTIONS
sleep 3
progress "Starting Kernellog daemon"
klogd
)&