Line 3: Line 3:
 
  sudo vi /etc/init.d/<jobname>
 
  sudo vi /etc/init.d/<jobname>
 
*Update initrd
 
*Update initrd
  sudo update-rc.d test.sh defaults
+
  sudo update-rc.d <jobname> defaults
 
That's all. The job will run from the next time the system starts.
 
That's all. The job will run from the next time the system starts.
  
 
{{Template:FB}}
 
{{Template:FB}}
 
[[Category:Technical]]
 
[[Category:Technical]]

Latest revision as of 13:58, 29 December 2013

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 <jobname> 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.