Re: [CentOS] Run as root on reboot

2020-10-28 Thread John Pierce
On Wed, Oct 28, 2020 at 8:53 PM david wrote: > > By "initial setup", I meant during the initial install of the > operating system, starting from "net-install". Maybe one user is > defined. The reboot command is issued from a script that was > initiated by hand. > so you want this script run

Re: [CentOS] Run as root on reboot

2020-10-28 Thread david
At 07:10 PM 10/28/2020, Kenneth Porter wrote: --On Wednesday, October 28, 2020 5:34 PM -0700 david wrote: During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention. "During initial setup"

Re: [CentOS] Run as root on reboot

2020-10-28 Thread Kenneth Porter
--On Wednesday, October 28, 2020 5:34 PM -0700 david wrote: During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention. "During initial setup" is vague. Lots of stuff happens during startup.

Re: [CentOS] Run as root on reboot

2020-10-28 Thread John R. Dennison
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

Re: [CentOS] Run as root on reboot

2020-10-28 Thread Jonathan Billings
On Oct 28, 2020, at 19:58, david 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

Re: [CentOS] Run as root on reboot

2020-10-28 Thread david
At 04:47 PM 10/28/2020, Frank Cox wrote: On Wed, 28 Oct 2020 16:34:32 -0700 david wrote: > Is there a way to reboot and have a script run without > intervention. rc.local -- Alas, I think rc.local has become irrelevant with systemd, which is most Linux distros is the way forward.

Re: [CentOS] Run as root on reboot

2020-10-28 Thread Frank Cox
On Wed, 28 Oct 2020 16:34:32 -0700 david wrote: > Is there a way to reboot and have a script run without > intervention. rc.local -- Can we uninstall 2020 and install it again? This one has a virus. MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com

[CentOS] Run as root on reboot

2020-10-28 Thread david
Folks Is there a way to reboot and have a script run without intervention. During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention. The output of the command would still show up on the

Re: [CentOS] Unable to get dummy interfaces to persist across reboots in CentOS 8

2020-10-28 Thread Strahil Nikolov via CentOS
Requirement is a very strong word , but you should consider using it and here is a short demo why: - By default, RHEL uses NetworkManager to configure and manage network connections, and the /usr/sbin/ifup and /usr/sbin/ifdown scripts use NetworkManager to process ifcfg files in the

[CentOS] System not logging

2020-10-28 Thread Gary Stainburn
One of my boxes has stopped logging some of the things it's supposed to.  I use rsyslog which used to send named and dhcpd entries to separate log files.  Both named and dhcpd are working. I have shut down the DHCPD server and run it in debug mode and the output is produced as expected. I

Re: [CentOS] Unable to get dummy interfaces to persist across reboots in CentOS 8

2020-10-28 Thread Simon Matter
> No. Network Manager is always disabled on our builds since at least > Cent5 days. The network stack has always been able to be managed > properly without relying on Network Manager. Is that now an absolute > requirement? It never has been prior. IIRC the old style network scripts will go

Re: [CentOS] Unable to get dummy interfaces to persist across reboots in CentOS 8

2020-10-28 Thread Frank Even
As far as what dummy interfaces are used for, they're basically loopbacks that allow for some better network management/flexibility (by separating it from the actual system loopback). On Mon, Oct 26, 2020 at 6:26 PM Strahil Nikolov via CentOS wrote: > > Have you tried to use NetworkManager ? >

Re: [CentOS] Unable to get dummy interfaces to persist across reboots in CentOS 8

2020-10-28 Thread Frank Even
No. Network Manager is always disabled on our builds since at least Cent5 days. The network stack has always been able to be managed properly without relying on Network Manager. Is that now an absolute requirement? It never has been prior. On Mon, Oct 26, 2020 at 6:26 PM Strahil Nikolov via