Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: Arbuthnot on 23 November 2019, 15:53:54

Title: SSH session
Post by: Arbuthnot on 23 November 2019, 15:53:54
Hello,
I've installed OpenSSH and can connect in to the Artix box fine. If I close the connection (or lose connectivity) then anything I started is lost, not just the things I would expect - for example, if I am using screen then when I reconnect there are no sessions, or if I start vnc server the process dies when SSH disconnects. This isn't how things worked for me in Gentoo but I don't know where the difference is - is it to do with the OpenSSH implementation, or the Bash profile, or something else? Thanks.
Title: Re: SSH session
Post by: Dudemanguy on 23 November 2019, 16:29:22
I've actually noticed a similar problem myself. When I explicitly put things in the background and detach it from the terminal, the job is still killed when I close the ssh connection. I think maybe some package is configured/has some compilation flag that does this behavior (elogind?). Ordinarily,  yeah it's not supposed to happen.
Title: Re: SSH session
Post by: phoenix_king_rus on 23 November 2019, 16:36:21
Set KillUserProcesses=no in /etc/elogind/logind.conf
Title: Re: SSH session
Post by: Arbuthnot on 23 November 2019, 17:01:45
Thank you phoenix_king_rus! That seems to have done the trick (after a reboot). This will make my life a lot easier. Much appreciated.
Title: Re: SSH session
Post by: Dudemanguy on 23 November 2019, 21:13:05
Set KillUserProcesses=no in /etc/elogind/logind.conf

Hah thanks. I knew it was an option like that somewhere.