Mercurial > index.cgi > dotfiles
comparison .sleep @ 133:2f9a3b4b6a01
Launchd listeners are in a new location, that's why sleepwatcher failed
author | Steve Huston <huston@astro.princeton.edu> |
---|---|
date | Fri, 23 Oct 2015 15:50:38 -0400 |
parents | 3f489fba24de |
children | b00e6b403896 |
comparison
equal
deleted
inserted
replaced
132:4b3795f08022 | 133:2f9a3b4b6a01 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # first, don't inherit a socket (sleepwatcher doesn't get the user's env) | 2 # first, don't inherit a socket (sleepwatcher doesn't get the user's env) |
3 SSH_AUTH_SOCK= | 3 SSH_AUTH_SOCK= |
4 | 4 |
5 # find some sockets | 5 # find some sockets |
6 for sock in /tmp/launch-*/Listeners; do | 6 for sock in /tmp/com.apple.launchd.*/Listeners /tmp/launch-*/Listeners; do |
7 if [ -w $sock ]; then | 7 if [ -w $sock ]; then |
8 echo "Trying to remove keys from socket $sock" | 8 echo "Trying to remove keys from socket $sock" |
9 SSH_AUTH_SOCK=$sock ssh-add -D | 9 SSH_AUTH_SOCK=$sock ssh-add -D |
10 fi | 10 fi |
11 done | 11 done |