main/busybox-initscripts: fix klogd startup klogd should rely on syslog, as syslog must already be running for klogd to properly utilize it

This commit is contained in:
Adrian Günter 2018-01-26 18:31:51 -05:00 committed by William Pitcock
parent 0865952997
commit ce73d3dd40
3 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ command_args="${KLOGD_OPTS}"
pidfile="/var/run/klogd.pid"
depend() {
need clock hostname localmount
need clock hostname localmount syslog
before net
keyword -vserver -lxc
}

View File

@ -9,6 +9,6 @@ pidfile="/var/run/syslogd.pid"
start_stop_daemon_args="-g wheel -k 027"
depend() {
need clock hostname klogd localmount
need clock hostname localmount
provide logger
}

View File

@ -26,7 +26,9 @@ for i in etc/rc[SL].d/*; do
# add the service to correct "runlevel"
case "$svc" in
hwclock|modules|sysctl|hostname|keymaps|syslog|bootmisc)
syslog|klogd)
rc_update $svc sysinit;;
hwclock|modules|sysctl|hostname|keymaps|bootmisc)
rc_update $svc boot;;
*) rc_update $svc default;;
esac