
How to Run Script/Program at Startup with Systemd on Linux
There are plenty of ways to automatically run a script or command at Linux boot up, either by cron, rc.local or my preferred way — systemd. Services are easier to manage, you can start/stop/enable/disable it with systemctl on the fly, it can even restart itself after failure.