Possible Duplicate:
Linux equivalent for Windows Startup
I'd need a program to be run every time I startup my ubuntu linux. So I'd need to add it to my startup programs list. Just one problem: I'd need to do it via terminal.
Join Stack Overflow to learn, share knowledge, and build your career.
I'd need a program to be run every time I startup my ubuntu linux. So I'd need to add it to my startup programs list. Just one problem: I'd need to do it via terminal. |
||||
closed as off-topic by Brad Larson♦ Jul 8 '16 at 17:26This question appears to be off-topic. The users who voted to close gave this specific reason:
|
||||
Script should now start on boot. Note that this method also works with both hard links and symbolic links ( EditAt this point in the boot process PATH isn't set yet, so it is critical that absolute paths are used throughout. BUT, as pointed out in the comments by Steve HHH, explicitly declaring the full file path ( Another EditAlso as pointed out in the comments (by Charles Brandt), Another link to another article just to avoid possible link rot (although it would be saddening if GitHub died) - http://www.linux.com/learn/tutorials/442412-managing-linux-daemons-with-init-scripts yetAnother EditAs pointed out in the comments (by Russell Yan), This works only on default mode of update-rc.d. According to manual of update-rc.d, it can run on two modes, "the machines using the legacy mode will have a file The equivalent argument set for the above example is
|
|||||||||||||||||||||
|
crontab -eto edit your user's crontab; add@reboot commandto runcommandon each boot. – appas May 27 '15 at 17:29