Launchd Question

cdaley
New Contributor

Hi Everyone.

With Lion, I am constantly getting a "Proxy Authentication Required" dialog box. It comes from a process called UserNotificationCenter. Looking on the net, so are other people. And at times it doesn't accept a user's credentials, until the 2nd/3rd attempt.

http://list.jamfsoftware.com/pipermail/casper/2011-October/016115.html
https://discussions.apple.com/thread/3259747?start=0&tstart=0

I have developed a launch agent that kills the process and it works a treat. Except, I have it running constantly, with the KeepAlive tag, so a script determines if the process is running, and kills it accordingly.

I have looked on the man page for launchd and cannot see if this is a way to invoke the script only if a particular process is running, rather than having the script executing all the time.

Does anyone have any suggestions or has anyone else encountered this "proxy dialog" issue and resolved it another way?

Cheers Chris.
--
Chris Daley | Apple Engineer
St Joseph's College | Mark Street, Hunters Hill, NSW 2110 | Locked Bag 5009, Gladesville, NSW 1675

1 REPLY 1

bbergstein
New Contributor III

Can you do this via Casper's Restricted Software feature? This looks for a running process and you can specify whether to kill it, delete it, and even display a message to the user. Look in the JSS under Management-Restricted Software.