Introduce logging and log management for all available processes #53
Labels
documentation
Improvements or additions to documentation
feature
New feature or request
optimization
This is making a feature work better
Spike Type
Functional
Goal
Desired attributes for NER logging:
/var/log/
) such that sd card wear is avoidedstart-stop-daemon
piping in the/etc/init.d/SXX
file. The structure and implentation of logging and the wider startup shell scripting should be documented in a markdown document for addition to confluence or github. Note: busybox's implementation does not match openrc or even debians implentation!Reason for Spike
Currently debugging program failures that only occur in the startup environment is nearly impossible (see below for current status). Also, logs are not persisted at all, so retracing history post power loss is completely impossible if it was not emitted to a network peer.
Why could boot failures occur?
Programs may fail only at boot if the init script has a bug or a resource or process used by the startup daemon is unavailable or not yet configured. Scenarios include bringing up network processes without wlan establishment or hardware being brought up after their userland companion processes.
Additional notes
Current situation with logging:
Currently, startup process (those in
/etc/init.d
) stdout/stderr is logged to the serial console, however background processes (like those configured bystart-stop-daemon
) pipe stdout and stderr to oblivion. Each process usually can log individually using its internal functionality. Furthermore, the serial output described aboce is not routed to/var/log/messages
on syslog implementations (see S01syslog). Also, all logs are purged on shutdown due to the nature of tmpfs.Important note: It is very possible the desired goals of the logging are out of the scope of existing buysbox init system capabilities. If that becomes evident, comparisons with other init systems should be made.
The text was updated successfully, but these errors were encountered: