Arjun Suresh (talk | contribs) m (Arjun Suresh moved page Making a Star-up job in Ubuntu to Making a Start-up job in Ubuntu: spell check) |
Arjun Suresh (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
*Edit it to give the path and arguments | *Edit it to give the path and arguments | ||
sudo vi /etc/init.d/<jobname> | 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. | ||
+ | |||
{{Template:FB}} | {{Template:FB}} | ||
[[Category:Technical]] | [[Category:Technical]] |
sudo cp /etc/init.d/skeleton /etc/init.d/<jobname>
sudo vi /etc/init.d/<jobname>
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>