initscripts will run while building OpenWRT images on the host system as described on the wiki: https://openwrt.org/docs/guide-developer/procd-init-scripts#init_scripts_during_compilation Thus we no longer execute any commands and wrap functionality into proper start_service() function