from here – https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd
If you are running a Linux distro that uses Systemd, then you may find that your command in /etc/rc.local file would not run on system boot. This guide explains how to enable /etc/rc.local script to run on system startup. If you type the following command in terminal:
sudo systemctl status rc-local