[CentOS] Run as root on reboot

Thu Oct 29 00:12:32 UTC 2020
Jonathan Billings <billings at negate.org>

On Oct 28, 2020, at 19:58, david <david at daku.org> wrote:
> Alas, I think rc.local has become irrelevant with systemd, which is most Linux distros is the way forward.

I suggest running:  

systemctl cat rc-local.service

The trick is to make the /etc/rc.d/rc.local file executable.

However, honestly, what you are asking for should be to create your own systemd service to launch on boot.  Systemd service units are trivial to write.

Jonathan Billings <billings at negate.org>