Re: Execute a command after connecting or disconnecting?



Bill C Riemers 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.
> 

You can use the dispatcher for that. man 8 NetworkManager

Cheers, Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]