Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

launchd - running a command on every network up

  • 01-11-2005 12:59am
    #1
    Registered Users, Registered Users 2 Posts: 71,184 ✭✭✭✭


    Due to having the worlds most insane network setup - work VPN at home, etc - my DNS server is under the 169.254.x.x range, which Bonjour sets up a link local route to, which has to be deleted every time the network is brought up on Tiger - be it booting the machine or resuming from sleep mode. On my Windows machine, deleting Bonjour was a possibility (and has been done), but on Tiger, this isn't possible

    I'd like to have the "Open Terminal, su, route delete 169.254.0.0/16" task I have to do every time automated, and I believe that launchd can probably be made does this for me; but I'm not sure. Screwing with network routes needs root access, which could be problematic.

    Anyone got any suggestions? I spent some time trying to see could it be done through launchd's xinetd style modes, but can't see anything obvious.

    If theres no way to get a command run on each network up, cron'ing it to run every 2 minutes or so might be a possibility if a little wasteful.


Advertisement