/etc/network/if-up.d/ on CentOS & RedHat EL

On debian machines there is a folder `/etc/network/if-up.d/` that will run executable scripts when the network connection goes up. On CentOS and RedHat it works differently – it checks to see if there is a file `/sbin/ifup-local` and will execute that if it is available.

to create it:

sudo vi /sbin/ifup-local
sudo chmod +x /sbin/ifup-local

Debian’s directory structure is cleaner but I don’t think there is an out-of-the-box 1:1 on enterprise linux… yet.

Related Posts:

  • No Related Posts
This entry was posted in Linux and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *