add a new service on ubuntu

Steps to adding/creating new service in ubuntu:

  1. Create the service file in /etc/init.d/<service name>
  2. chmod 700 /etc/init.d/<service name>
  3. update-rc.d <service name> defaults
  4. update-rc.d <service name> enable

now see you service in

service --status-all