diff options
author | John Hood <cgull@glup.org> | 2015-10-18 16:27:31 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2015-11-24 02:36:08 -0500 |
commit | b742e958b6ae7185f557263e4b81db0e1038b882 (patch) | |
tree | b7055aaaaed91508f3146adc389d0533a9dd51f2 /man | |
parent | 4b8444988e8e8b8d244f8576cc013c90a91ab3f6 (diff) |
mosh-server: Support timeouts on lost connectivity to network client.
Closes #690.
Diffstat (limited to 'man')
-rw-r--r-- | man/mosh-server.1 | 37 | ||||
-rw-r--r-- | man/mosh.1 | 7 |
2 files changed, 44 insertions, 0 deletions
diff --git a/man/mosh-server.1 b/man/mosh-server.1 index 39fbb34..ae4eca8 100644 --- a/man/mosh-server.1 +++ b/man/mosh-server.1 @@ -82,6 +82,43 @@ Locale-related environment variable to try as part of a fallback environment, if the startup environment does not specify a character set of UTF-8. +.SH ENVIRONMENT VARIABLES +These variables allow server-side configuration of Mosh's behavior. +They may be set by administrators in system login/rc files, +/etc/login.conf, or similar mechanisms, or users in their shell's +login/rc files. \fBmosh-server\fP passes these variables to the login +session and shell that it starts, but changing them there will have no +effect. + +.TP +.B MOSH_SERVER_NETWORK_TMOUT +If this variable is set to a positive integer number, it specifies how +long (in seconds) \fBmosh-server\fP will wait to receive an update from the +client before exiting. Since \fPmosh\fP is very useful for mobile +clients with intermittent operation and connectivity, we suggest +setting this variable to a high value, such as 604800 (one week) or +2592000 (30 days). Otherwise, \fBmosh-server\fP will wait +indefinitely for a client to reappear. This variable is somewhat +similar to the \fBTMOUT\fP variable found in many Bourne shells. +However, it is not a login-session inactivity timeout; it only applies +to network connectivity. + +.TP +.B MOSH_SERVER_SIGNAL_TMOUT +If this variable is set to a positive integer number, it specifies how +long (in seconds) \fBmosh-server\fP will ignore SIGUSR1 while waiting +to receive an update from the client. Otherwise, \fBSIGUSR1\fP will +always terminate \fBmosh-server\fP. Users and administrators may +implement scripts to clean up disconnected Mosh sessions. With this +variable set, a user or administrator can issue + +.nf +$ pkill -SIGUSR1 mosh-server +.fi + +to kill disconnected sessions without killing connected login +sessions. + .SH EXAMPLE .nf @@ -92,6 +92,13 @@ command to run server helper on remote machine (default: "mosh-server") The server helper is unprivileged and can be installed in the user's home directory. +This option can be used to set environment variables for the server by +using the +.BR env (1) +command to wrap the actual server command. See +.BR mosh-server (1) +for available environment variables. + .TP .B \-\-ssh=\fICOMMAND\fP OpenSSH command to remotely execute mosh-server on remote machine (default: "ssh") |