RHEL 7 rc-local service.

Share this link

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 Systemd service 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.

Posted in RHEL7

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

Upcoming Events (CET)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create a user called tom. Create a directory named /private. Use an acl to only allow access (rwx) to tom to the private directory.

RHCE7: Task of the day

Allowed time: 8 minutes.
Set up an iScsi target based on a block backstore of 100MB called lv_iscsi with basic authentication, ext4 filesystem and standard firewall configuration.

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...