INIT Script TUX

All about Linux init script


What is an init script, what is the use of it, how to write an init script? Lets begin to know the answers. Declaimer: Use it at your own risk!!! Writing this topic for learning and knowledge sharing purpose only. You must own root privileges (and authority) on the system where you are trying or applying this topic. What is an init…

subsys

Use of subsystem lock files in init script


In /var/lock/subsys/ directory, there are various files like network, iptables, ip6tables, sshd, rsyslog etc. all these files are the lock files created by their init scripts. Most of these files may be empty. These files play the important role in Linux startup and shutdown process. When a service is started through an init script, a…