[OpenWrt Wiki] Init Scripts
https://openwrt.org/docs/techref/initscripts23.12.2020 · FIXME This mostly applies to traditional SysV-style initscripts, See procd-init-scripts as well for procd-style initscripts 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
[OpenWrt Wiki] procd init script parameters
openwrt.org › docs › guide-developerAug 10, 2021 · A procd init script is similiar to an old init script, but with a few differences: procd expects services to run in the foreground. Different shebang line: #!/bin/sh /etc/rc.common. procd expects that shell variable (not environment variable) initscript is set to the path of the script that invoked it. Explicitly use procd USE_PROCD=1.
[OpenWrt Wiki] 怎样写一个基于procd的init脚本?
openwrt.org › zh-cn › inboxJan 19, 2015 · start_service() { procd_open_instance procd_set_param command /sbin/your_service_daemon -b -a --foo procd_set_param respawn # respawn automatically if something died, be careful if you have an alternative process supervisor procd_set_param env SOME_VARIABLE=funtimes # pass environment variables to your process procd_set_param limits core ...
[OpenWrt Wiki] Init Scripts
openwrt.org › docs › techrefDec 23, 2020 · FIXME This mostly applies to traditional SysV-style initscripts, See procd-init-scripts as well for procd-style initscripts 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