Autostart run_script on start-up of a machine

One solution is to add a line in the /etc/rc.local file or add a line in crontab like this one :

@reboot /path/to/script.sh