Systemd unit template which calls a script exactly once upon startup and keeps unit status active after script finishes.
Unit file placed in /etc/systemd/system and enabled with:
$ sudo systemctl enable runonce.service
$ sudo systemctl start runonce.service