The script /etc/rc. local is for use by the system administrator. It is traditionally executed after all the normal system services are started, at the end of the process of switching to a multiuser runlevel. You might use it to start a custom service, for example a server that’s installed in /usr/local.
Where is RC local in Ubuntu?
The /etc/rc. local file on Ubuntu and Debian systems are used to execute commands at system startup. But there’s no such file in Ubuntu 18.04. # This script is executed at the end of each multiuser runlevel.
How do I run a RC local script?
first make the script executable using sudo chmod 755 /path/of/the/file.sh now add the script in the rc. local sh /path/of/the/file.sh before exit 0 in the rc. local, next make the rc. local to executable with sudo chmod 755 /etc/rc.