#!/sbin/openrc-run --user SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.sock" command="/usr/bin/ssh-agent" command_args="-D -a $SSH_AUTH_SOCK" command_background=yes pidfile="${XDG_RUNTIME_DIR}/ssh-agent.pid" extra_commands="socket" socket() { echo ${SSH_AUTH_SOCK} }