Comment 3 for bug 1244736

Revision history for this message
Bruno Vasselle (bruno-vasselle) wrote :

I've also added two lines to protect the killing part, which I did not mention above. Don't know whether it's useful or not.

By the end of pre-start:
    initctl set-env --global SSH_AGENT_LAUNCHER=/usr/share/upstart/sessions/ssh-agent.conf

By the beginning of post-stop:
    [ "$SSH_AGENT_LAUNCHER" = /usr/share/upstart/sessions/ssh-agent.conf ] || exit 0