OT launchd sleep and wake

Rainer Müller raimue at macports.org
Fri Aug 7 21:51:52 PDT 2009


On 2009-08-07 20:43 , Scott Haneda wrote:
> I'm looking to clear ssh-agent which is becoming an issue in and of  
> itself. I was hoping there may be a file that was created or destroyed  
> in wake/sleep that I could set launchd to look at as a watch folder.

> [...]

> I know sshkeychain has this ability, and while it is no longer  
> developed, there is a chance I could pull just that code out and make  
> a portfile that created a sleep/wake watching agent.

Although SSHKeychain may not be actively maintained anymore, I am
happily using it for exactly this purpose. It is removing keys from
ssh-agent and locking the Mac OS X keychain on screensaver activation or
system sleep.

Rainer


More information about the macports-dev mailing list