aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpsshd5
1 files changed, 3 insertions, 2 deletions
diff --git a/psshd b/psshd
index 14b3345..9490892 100755
--- a/psshd
+++ b/psshd
@@ -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" \