Re: Run as root on reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.






                                                        John


-- 
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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux