On 05/30/2016 05:46 AM, Shish wrote:
`mosh-server` should be added to the list of processes which should be
exempt from this behaviour, as it is based on the principle of "ssh
into remote host, start daemon, exit ssh, continue speaking to
daemon".
As a workaround, I'm running it in a new session explicitly:
mosh --server "systemd-run --scope --user mosh-server" $hostname
To make this more googlable, the error message which happens when
systemd kills mosh-server is:
mosh: Nothing received from server on UDP port 60001. [To quit: Ctrl-^ .]
And here's another example of why exempting/shimming certain processes
(or waiting for them to be patched) is a bad workaround. Any number of
programs could be affected by this, and not all of them are still
actively developed.