Scripting:
/etc/init.d/ myscriptname # chkconfig: 35 90 10 # the Description: the description, the description of the above 90 indicates the priority in a number of startup scripts and 10 is shut down in a number of startup scripts priority # Here is the script logic
Add executable permissions:
chmod +x myscriptname
Add boot:
chkconfig --add myscriptname increase myscriptname Service
More about chkconfig command of
chkconfig - -add myscriptname increase myscriptname service chkconfig - -list to list all of the system services chkconfig - -del myscriptname delete myscriptname service chkconfig --level myscriptname 35 ON myscriptname in the case of run level 3 and 5 are on (open )status.