Yes. "Init.d" script is not a standard script, but a script that requires input argument processing. In the case of Enigma2 distributions in lightweight Linux systems, at least the following arguments (parameters) are used:
start | stop | restart
The "start" argument is sent to the "init.d" script when a specific service run through init.d is starting (for example, when booting a Linux system).
The "stop" argument is invoked when the Linux system reboots / shuts down. Therefore, these basic arguments (parameters) must be captured there.
In some cases, the return value (error code) from the "init.d" script also plays an important role ! Be careful, don't confuse it with the "status" arguments for the init.d script. If "status" argument is requested through some "init.d" script, then the return values represent the "status code" of the service, and they are different codes than in the case of "exit code".
Many additional arguments for "init.d" scripts, in the case of Enigma2 set top boxes, are not needed or are not implemented (it varies depending on which Linux system is used and whether it is a light version or a full version of the Linux system).
You can find more information on the internet... for example, here:
https://refspecs.lin...niscrptact.html
https://www.novell.c...ml/ch13s04.html
With some script-examples:
https://bash.cyberci...ide//etc/init.d
https://unix.stackex...d-start-at-boot
Edited by s3n0, 2 September 2022 - 14:36.