Re: Execute a command after connecting or disconnecting?
- From: drago01 <drago01 gmail com>
- To: Bill C Riemers <briemers redhat com>
- Cc: NetworkManager-list gnome org
- Subject: Re: Execute a command after connecting or disconnecting?
- Date: Fri, 19 Feb 2010 17:19:27 +0100
On Fri, Feb 19, 2010 at 3:43 PM, Bill C Riemers <briemers redhat com> wrote:
> Is there a way to automatically execute a command after opening or
> closing a connection?
>
> What I would like to do is figure out a way to run "service dnsmasq
> restart" when connecting or disconnecting from openvpn. That way my
> dns will not continue to cache lookups across this action.
>
> Currently I do this manually. Otherwise, if for example I try to open
> e-mail when not connected to work, a DNS entry to opendns will be cached
> by dnsmasq, even after I am connected via vpn.
You can place a script in /etc/NetworkManager/dispatcher.d
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]