Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3485 - logd: log starts up before networking, causing remote logging to miss boot messages #8354

Open
openwrt-bot opened this issue Dec 1, 2020 · 2 comments
Labels
core packages pull request/issue for core (in-tree) packages flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release

Comments

@openwrt-bot
Copy link

dfberger:

grep PRETTY_NAME /etc/os-release

PRETTY_NAME="OpenWrt 19.07.4"

rc.d contains:

K10ddns -> ../init.d/ddns
...
K99socat -> ../init.d/socat
S00sysfixtime -> ../init.d/sysfixtime
S00urngd -> ../init.d/urngd
S01haveged -> ../init.d/haveged
S10boot -> ../init.d/boot
S10system -> ../init.d/system
S11sysctl -> ../init.d/sysctl
S12log -> ../init.d/log
S12rpcd -> ../init.d/rpcd
S19dnsmasq -> ../init.d/dnsmasq
S19dropbear -> ../init.d/dropbear
S19firewall -> ../init.d/firewall
S20network -> ../init.d/network
...

note log is S12, network is S20

there's a comment at the top of the log rc script which suggests this is the wrong order:

cat /etc/init.d/log

#!/bin/sh /etc/rc.common

Copyright (C) 2013 OpenWrt.org

start after and stop before networking

START=12
STOP=89
PIDCOUNT=0

note: "start after ... networking"

@openwrt-bot
Copy link
Author

dfberger:

making log start after network improves the situation, but boot messages are still missing from both the remote syslog server and the local log file.

this was observed in lede 17, and closed without resolution: https://bugs.openwrt.org/index.php?do=details&task_id=568

@openwrt-bot
Copy link
Author

dfberger:

Also discussed in forums https://forum.openwrt.org/t/syslog-messages-from-bootup-lost/38372

@aparcar aparcar added release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release core packages pull request/issue for core (in-tree) packages labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release
Projects
None yet
Development

No branches or pull requests

2 participants