Re: Hooking Network Manager to (re)start a program



On 9/17/07, Vehbi Sinan Tunalioglu <vst cs bilgi edu tr> wrote:
> Dear All,
>
> How could I hook Network Manager to (re)start a program when
> (re)connecting?
>
> Problem detail:
>
> I need to restart spamassassin daemon whenever I connect to any of
> wireless/wired networks around. Do not ask why; Spamassassin should
> care about this. But on Ubuntu, I need to do this manually. Otherwise,
> I get lots of spam more than expected.
>
> Thanks in advance.
>
> Best Regards,
> Vehbi Sinan
>

Take a look at NetworkManagerDispatcher:
man networkmanagerdispatcher

Some links to examples can be found here:
http://www.darrenalbers.net/wiki/index.php?title=NetworkManagerScripts



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