LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Redhat-8 display "active (dead)" state when checking rc.local status (https://www.linuxquestions.org/questions/red-hat-31/redhat-8-display-active-dead-state-when-checking-rc-local-status-4175667790/)

edwardsmarkf 01-15-2020 04:11 PM

Redhat-8 display "active (dead)" state when checking rc.local status
 
hello -

On a new install of Redhat-8 on the Google-cloud, I get an "inactive (dead)" when checking the status of rc-local:

Quote:

# systemctl status rc-local ;
● rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-rc-local-generator(8)
this is easily fixed by doing:
Code:

chmod 744 /etc/rc.d/rc.local ;
systemctl start rc-local;  ##

is this any sort of issue to consider?

frankbell 01-15-2020 06:48 PM

Have you contacted RHEL support regarding this?

edwardsmarkf 01-15-2020 07:01 PM

Quote:

Originally Posted by frankbell (Post 6078815)
Have you contacted RHEL support regarding this?

no, usually when i do something like that, they tell me to go RTFM, whatever that means.

michaelk 01-15-2020 07:50 PM

No it isn't an issue because basically systemd is creating a service to be backwards compatible with sysv init scripts. With sysv rc.local was the last script to run before the GUI started or you saw the login prompt. It was/is also a quick way to run a command at boot up without creating a specific init script which has to conform to a particular form. The service is there to run the script at the right time and therefore it needs to running as well as rc.local being executable. Neither rc.local service or rc.local script are configured to run by default.

RTFM - Read The "Fine" Manual


All times are GMT -5. The time now is 10:15 AM.