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

#!/bin/sh

route add -net 10.10.0.0 netmask 255.255.0.0 gw 10.10.1.253

Make the rc.local file executable

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

Verify

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 )

Google+ photo

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

Connecting to %s