Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / upstart / sessions / | server ip : 172.67.156.115 your ip : 172.70.100.14 H O M E |
Filename | /usr/share/upstart/sessions/ssh-agent.conf |
Size | 789 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 14-Apr-2014 19:11 |
Last accessed | 06-Jul-2025 22:42 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
description "SSH Agent"
author "Stéphane Graber <[email protected]>"
start on starting xsession-init
pre-start script
[ -e /etc/X11/Xsession.options ] || { stop; exit 0; }
grep -q "^use-ssh-agent$" /etc/X11/Xsession.options || { stop; exit 0; }
[ -z "$SSH_AUTH_SOCK" ] || { stop; exit 0; }
eval "$(ssh-agent)" >/dev/null
initctl set-env --global SSH_AUTH_SOCK=$SSH_AUTH_SOCK
initctl set-env --global SSH_AGENT_PID=$SSH_AGENT_PID
initctl set-env --global SSH_AGENT_LAUNCHER=upstart
end script
post-stop script
[ "$SSH_AGENT_LAUNCHER" = upstart ] || exit 0
kill $SSH_AGENT_PID 2>/dev/null || true
initctl unset-env --global SSH_AUTH_SOCK
initctl unset-env --global SSH_AGENT_PID
initctl unset-env --global SSH_AGENT_LAUNCHER
end script
author "Stéphane Graber <[email protected]>"
start on starting xsession-init
pre-start script
[ -e /etc/X11/Xsession.options ] || { stop; exit 0; }
grep -q "^use-ssh-agent$" /etc/X11/Xsession.options || { stop; exit 0; }
[ -z "$SSH_AUTH_SOCK" ] || { stop; exit 0; }
eval "$(ssh-agent)" >/dev/null
initctl set-env --global SSH_AUTH_SOCK=$SSH_AUTH_SOCK
initctl set-env --global SSH_AGENT_PID=$SSH_AGENT_PID
initctl set-env --global SSH_AGENT_LAUNCHER=upstart
end script
post-stop script
[ "$SSH_AGENT_LAUNCHER" = upstart ] || exit 0
kill $SSH_AGENT_PID 2>/dev/null || true
initctl unset-env --global SSH_AUTH_SOCK
initctl unset-env --global SSH_AGENT_PID
initctl unset-env --global SSH_AGENT_LAUNCHER
end script