[OpenWrt Wiki] The Boot Process
openwrt.org › docs › techrefDec 09, 2021 · Notice that both the “sysinit” and “shutdown” actions are calling the same program (the “/etc/init.d/rcS” script). The only difference is the options that are passed to the rcS script. This will become clearer later on. At this point, init has parsed the configuration file and is looking for what to do next.
[OpenWrt Wiki] Init Scripts
openwrt.org › docs › techrefDec 23, 2020 · Init Scripts Init scripts configure the daemons of the Linux system. Init scripts are run to start required processes as part of the boot process. In OpenWrt init is implemented with init.d. The init process that calls the scripts at boot time is provided by Busybox. This article explains how init.d scripts work and how to create them.
[OpenWrt Wiki] Configuration in scripts
openwrt.org › docs › guide-developerOpenWrt offers a set of standard shell procedures to interface with UCI in order to efficiently read and process configuration files from within shell scripts. This is most likely useful for writing startup scripts in /etc/init.d/ . Loading To be able to load UCI configuration files, you need to include the common functions with:
[OpenWrt Wiki] 怎样写一个基于procd的init脚本?
openwrt.org › zh-cn › inboxJan 19, 2015 · By default, “reload” will cause a stop/start call, unless you have provided the 'reload()' call explicitly in your init script. There is not (currently, r41147) support for grabbing the PID of a procd service, or sending a signal to that service in the reload routine, but it should be possible “soon™”
[OpenWrt Wiki] The Boot Process
https://openwrt.org/docs/techref/process.boot09.12.2021 · The Boot Process As noted below, this page is woefully out of date Please also see requirements.boot.process This guide it not up-to-date! It does not mention procd This guide shall help you understand, e.g. * When is it time for kexec and when for extroot_configuration (see particularly extroot.theory)? * How does the
[OpenWrt Wiki] Init Scripts
https://openwrt.org/docs/techref/initscripts23.12.2020 · Init scripts configure the daemons of the Linux system. Init scripts are run to start required processes as part of the boot process.In OpenWrt init is implemented with init.d. The init process that calls the scripts at boot time is provided by Busybox.This article explains how init.d scripts work and how to create them.
[OpenWrt Wiki] Procd system init and daemon management
openwrt.org › docs › techrefSep 02, 2019 · procd is the OpenWrt process management daemon written in C. It keeps track of processes started from init scripts (via ubus calls), and can suppress redundant service start/restart requests when the config/environment has not changed. procd has replaced … , e.g. hotplug2, a dynamic device management subsystem for embedded systems.