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:
Checks whether rc.local is active or deactivated. If it is not active, then give the command:
Next, use the following command:
After that, use this command:
Now, you will now see this status as active. At the end, enable the options using this command:
system enable rc-local
Conclusion
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.
from https://ift.tt/3i3Slj7

0 Comments