On 2021-04-03 17:08 +0200, Thomas Seeling wrote: > Hallo dear list, > > > for years I have a small helper in /etc/profile.d to search for an > existing ssh-agent instance for my user and set the SSH_* environment > variables accordingly if it finds one. If none is running it does the > usual eval $(ssh-agent) thing. > > In the last days I built LFS 10.1 systemd version to compare sysV and > systemd styles and educate myself further. > > When exiting and re-entering I noticed that it asks me - again - for my > SSH key credentials and eventually my previous instance of ssh-agent is > gone. > > Is it standard behaviour of systemd to kill all processes since login? > My sysV install behaves like expected and ssh-agent stays alive. How > would I start ssh-agent so that it will survive logoff? An additional > layer of "nohup"?
Read section 9.10.9 of LFS book. -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
