If you have cron on your machine, I think the easiest thing to do is to
use the '@reboot' cron time specification, either in /etc/crontab, a
file in /etc/cron.d or root's personal crontab. e.g.
@reboot /usr/local/bin/foobar.sh
assuming that's where the script is and it's +x