[CentOS] Run as root on reboot

Thu Oct 29 00:12:57 UTC 2020
John R. Dennison <jrd at gerdesas.com>

On Wed, Oct 28, 2020 at 04:56:53PM -0700, david wrote:
> Alas, I think rc.local has become irrelevant with systemd, which is most
> Linux distros is the way forward.

vi /etc/rc.local -> add what you need to run on boot
chmod 700 /etc/rc.d/rc.local
systemctl enable rc-local.service

It's still supported, but disabled by default by both the unit being
disabled and the file being non-executable.  This works on 7, no idea
about 8.  They probably broke it there.


I thought I was in better shape.

-- Don Pellmann, age 100, who set five world records at the San Diego Senior
   Games, but fell short in the pole vault, dislodging the bar three times,
   New York Times, 22 September 2015
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20201028/f0924a60/attachment-0004.sig>