How to Use Rc.local on CentOS 8

During the boot process of Linux, we start the script using rc.local. Due to the complex init script process, it causes the user to spend a lot of time using it. Many people look for the methods to use rc.local on CentOS 8 easily. That’s why we have written this blog to give you a brief on the ways to use rc.local on CentOS 8.

How to Use Rc.local on CentOS 8

In Linux, rc.local is the process that comes into play when rebooting or shutting down the system or running scripts that run during startup or terminate the process itself.

We understand the purpose of rc.local. As a first step, rc.local works on one user or script, namely the distribution, whose functions are usually started and stopped by system services. Following this thought, when the system starts, it is used to start customized services when it goes to multiuser mode.

Additionally, it is used to start that service only. Using it again does not stop the system from shutting down and restarts it. So it cannot be used while shutting down the system.

In terms of system security, we should not use it. Thus, we work toward breaking or looping the security of the system:

First, we will go to a system reboot and use some commands. In this, find out its status with this command:

systemctl status rc-local

Checks whether rc.local is active or deactivated. If it is not active, then give the command:

chmod etc/rc.d/rc.local

Next, use the following command:

systemctl restart rc-local

After that, use this command:

systemctl status rc-local

Now, you will now see this status as active. At the end, enable the options using this command:

system enable rc-local


We have been successful in this article in trying to explain how to use rc.local. If you want to learn something else, then do check out our official website. We have uploaded thousands of articles on different technologies and operating systems.

About the author

Ankit Sharma