I have a script that I would like to run when my system starts. I have put it on "rc.local", but it doesn't work. How can I enable it to run on startup?
Can you run your script manually? If not, it's a problem with that script; otherwise look more at rc.local. (If that script needs to run as root, you need use sudo to manually run it.)
Make sure /etc/rc.local is executable and that the script it calls is also executable.
Make sure rc.local has a shebang line (which is the default):
In my case none of the instructions were a perfect solution. If you were as unlucky as me, try this detailed one
My bad. Just check one then. Thanks for the correction enzotib :)
protected by Community♦ Jul 16 '14 at 16:43
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?