diff options
-rwxr-xr-x | psshd | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -51,8 +51,9 @@ then fi # Export the two settings autossh absolutely needs -export AUTOSSH_PORT="$port" -export AUTOSSH_PIDFILE="${dir}/psshd-port-${port}.pid" +AUTOSSH_PIDFILE="${dir}/psshd-port-${port}.pid" +AUTOSSH_PORT="$port" +export AUTOSSH_PIDFILE AUTOSSH_PORT # Use start-stop-daemon to run it sanely "$startstopdaemon" \ |