I am trying to write a init.dscript for the first time to start a process supervisord. A supervisor is a controller / process manager, for example runit, upstartor systemd. I would like it to start automatically if the system restarts, so that it can run my applications.
I used this tldp tutorial as the basis for writing a init.dscript. It works fine, but I don't understand how to change this line in the file:
A note in the tutorial for this line reads:
Although these are comments, they are used by the chkconfig command and must be present. This particular line determines that at execution levels 2,3,4 and 5 this subsystem will be activated with priority 95 (one of the last) and deactivated with priority 05 (one of the first).
This RHEL doc explains the various runlevels as follows:
0 - Halt
1 - Single-user text mode
2 - Not used (user-definable_
3 - Full multi-user text mode
4 - Not used (user-definable)
5 - Full multi-user grapical mode
6 - Reboot
Of these options, I suppose I would like to run mine on 35, considering that 1 is for system administrators only.
There are several examples of supervisord scripts init.d, for example here . I noticed that all RHEL scripts init.dcontain the following line:
In this case, for what reason would the authors want him to be active at level 4, which is not used?
nginx init.d script :
- ?
?
, supervisor? 83 04, tldp 95 05.