I have a script I would like to run when my system starts and have put it in /etc/rc.local
, but it doesn't work. How can I enable it to run on startup?
Startup – Make /etc/rc.local Run on Startup
scriptsstartup
scriptsstartup
I have a script I would like to run when my system starts and have put it in /etc/rc.local
, but it doesn't work. How can I enable it to run on startup?
Best Answer
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 asroot
,sudo
must be used to manually run it./etc/rc.local
, and the script it call, is executable:rc.local
has a shebang line, which is the default: