sábado, abril 30, 2016

RHEL 7 rc-local service

RHEL 7 rc-local service. - CertDepot

centos 7 other file them rc.local

With Systemd, the Init scripts are not there any more. Consequently, the execution of tasks at boot time had to change.
Hopefully, a nice solution has been found: it uses the good old rc.local file.
Now, to execute tasks at boot time, you put them into the /etc/rc.d/rc.local file.
Then, you change the execution permissions on this file:
# chmod u+x /etc/rc.d/rc.local
Besides allowing executions of tasks, this simple operation activates the new rc-local Systemdservice for all the further boots (this is like systemctl enable in Systemd language).
Finally, you can start the rc-local service and, this way, test the execution of the rc.local file:
# systemctl start rc-local
SSD optimization is a good example of such a rc-local service.

Nenhum comentário: