The running process of service. Take network as an example: service network start.

First, the service looks for the network script in /etc/init.d. Start is a parameter in the networking script. Then it tells the system to run networking. The networking script will do the rest, and it’s as simple as that.

Normally, after we install the program, it will automatically register with the service; For example, docker copies its own startup script to /etc/init.d/, so that we can directly use service docker start to start it.

/etc/init.d/ add sh script to /etc/init.d/ add sh script to /etc/init.d/

Start, stop, restart: run the corresponding start, stop, and restart codes ࿱ under each parameter condition