How to Run Script or Program at Startup with Systemd on Linux
There are plenty of ways to automatically run a script or command at Linux boot up and after reboot, either by using cron, rc.local or my preferred method — systemd. It creates services which are easier to manage. You can start/stop/enable/disable them with systemctl after they're set up. Furthermore, services can even restart themselves after startup failure or crash.