sudo cp /etc/init.d/skeleton /etc/init.d/<jobname>
  • Edit it to give the path and arguments
sudo vi /etc/init.d/<jobname>
  • Update initrd
sudo update-rc.d test.sh defaults

That's all. The job will run from the next time the system starts.




sudo cp /etc/init.d/skeleton /etc/init.d/<jobname>
sudo vi /etc/init.d/<jobname>
sudo update-rc.d test.sh defaults

That's all. The job will run from the next time the system starts.