Re: if-up hooks not working
- From: Darren Albers <dalbers gmail com>
- To: Scott Severance <scott scottseverance us>
- Cc: NetworkManager Mailing List <networkmanager-list gnome org>
- Subject: Re: if-up hooks not working
- Date: Fri, 30 Nov 2007 18:53:01 -0500
On Fri, 2007-11-30 at 14:33 -0600, Scott Severance wrote:
> snip
>
> > > > After poking around the filesystem and NetworkManager's scanty
> > > > documentation, I determined that I should place my script in
> > > > /etc/network/if-up.d. However, I've discovered that those scripts
> > get called
> > > > when switching from wireless to wired, but not the other way
> > around. How can
> > > > I persuade NetworkManager to run my script *every* time it
> > switches
> > > > interfaces?
> snip
> > Thanks for the reply. I gather from the NetworkManagerDispatcher man
> > page that I should put my script in /etc/NetworkManager/dispatcher.d
> > and modify it so it only runs when the second command line argument is
> > "up." However, in its new location the script never gets executed.
> > What's even more confusing is that, apparently the only reason the
> > script worked at all in /etc/network/if- up.d was because there's a
> > script in /etc/NetworkManager/dispatcher.d which calls run-parts on
> > the other directory. Why isn't NetworkManagerDispatcher running my
> > script?
> After rebooting the computer in question as well as my server because
> NFS was acting up, my script now seems to get run reliably if I put it
> in /etc/network/if-up.d. However, contrary to the docs, the only script
> in /etc/NetworkManager/dispatcher.d that ever gets executed is
> 01ifupdown. Since that script calls run-parts on /etc/network/if-up.d,
> My script gets executed in that directory.
>
> Is the NetworkManagerDispatcher man page wrong, or am I experiencing
> some kind of bug?
>
> By the way, I'm running Ubuntu Gutsy.
Is the script only owned by root and executable? Do you see the script
execute when you tail syslog?
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]