Write Initscript For Linux Daemon Service

How to write a linux initscript? You have implemented a daemon service. Now you may want everyone in the project can easily manage the service without extra communication. The standard way would be “service $service_name start/stop/status”. Another thing, no one would enjoy starting service manually, when the machine is rebooted. Here are things you shall need to know or watch out to get above done.