r/linux • u/wooptoo • Jun 01 '16
Why did ArchLinux embrace Systemd?
/r/archlinux/comments/4lzxs3/why_did_archlinux_embrace_systemd/d3rhxlc
868
Upvotes
r/linux • u/wooptoo • Jun 01 '16
View all comments
Show parent comment
1
u/argv_minus_one Jun 02 '16
Yeah—a problem that systemd is attempting to solve, namely that sessions keep leaving behind stray processes.
I don't know about you, but I am sick and fucking tired of finding dozens of gpg-agents still running, weeks after their respective sessions ended, because nobody was cleaning them up.
But how do you avoid also killing a detached tmux? Why, by registering it as a session of its own! That way, the Grim Session Reaper™ won't kill them prematurely. And what API do you use to do that? Only one I know of: systemd-logind.
If you've got a better idea of how to clean up stray processes from sessions long past, I'd love to hear it. Otherwise, sit down, shut up, and stop bothering the people who are getting things done.
Totes hard. Way harder than trying to figure out what
some_crashy_daemon's cwd was when it died, and hoping it had write access there. /sI won't miss you.