Missing rc.local in Fedora 17 (and 15, 16)

How to make rc.local in Fedora 17 (and 15, 16) ?.

Enable rc-local service

# systemctl enable rc-local.service

Create the rc.local file in the /etc/rc.d directory, and make sure the first line is #!/bin/sh

# vim /etc/rc.d/rc.local


route add -net netmask gw

Make the rc.local file executable

# chmod 700 /etc/rc.d/rc.local


Reboot the server to check if the rc.local executes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s