PDA

View Full Version : dhclient-exit-hooks not starting script


ocgltd
2006-09-03, 09:19 PM CDT
I'm running FC5 2.6.27, and have setup a simple script to run from dhclient-exit-hooks. But...it never runs! Here are the details:

I added logger lines before and after the call to my script so that my dhclient-exit-hooks file looks like this:

logger "about to run"
/etc/test.sh
logger "tried to run"

and my /etc/test.sh file looks like this:

logger "in the file"

Now strangely, my syslog contains the "about to run" and "tried to run" entries, but never the "in the file" entry. Im triggering the dhclient script by bringing down and up my ethernet port which uses dhcp.

I confirmed that /etc/test.sh has execute permissions for everyone, and if I run the test.sh script manually it correctly logs the "in the file" message. This file is owned by root.

Why is this test.sh script not being launched from dhclient-exit-hooks? I'm stuck....

Thanks,
Michelle