Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I configured /etc/dhclient-exit-hooks, in the old days, when I do dhclient eth0 like stuff, that script got executed automatically.

Now I switched to NM, the script were never called! Althrough ps clearly shows it was running.

/usr/sbin/dhclient -d -4 -sf /usr/lib/networkmanager/nm-dhcp-client.action -pf /var/run/dhclient-wlan0.pid -lf /var/lib/dhclient/dhclient-85e57415-affe-4375-921d-f2eb45bc1002-wlan0.lease -cf /var/run/nm-dhclient-wlan0.conf wlan0

Any thoughts?

share|improve this question
What if NetworkManager is not installed and still seeing the same problem? – user111709 Apr 24 '15 at 1:17
up vote 5 down vote accepted

NetworkManager has its own place for hooks in /etc/NetworkManager/dispatcher.d/. Scripts in there get called whenever an interface changes state, see the NetworkManager manpage for all gory details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.