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
parent 071ac7db30
commit efd8fdada9

View File

@ -30,7 +30,7 @@
source /storage/.cache/syslog/remote source /storage/.cache/syslog/remote
fi fi
SYSLOGD_OPTIONS="-L -D" SYSLOGD_OPTIONS="-L"
if [ "$SYSLOG_REMOTE" == "true" -a "$SYSLOG_SERVER" ]; then if [ "$SYSLOG_REMOTE" == "true" -a "$SYSLOG_SERVER" ]; then
SYSLOGD_OPTIONS="-R $SYSLOG_SERVER $SYSLOGD_OPTIONS" SYSLOGD_OPTIONS="-R $SYSLOG_SERVER $SYSLOGD_OPTIONS"
@ -42,6 +42,8 @@
syslogd $SYSLOGD_OPTIONS syslogd $SYSLOGD_OPTIONS
sleep 3
progress "Starting Kernellog daemon" progress "Starting Kernellog daemon"
klogd klogd
)& )&