r/linux • u/rain5 • May 28 '16
systemd developer asks tmux (and other programs) to add systemd specific code
https://github.com/tmux/tmux/issues/428
359
Upvotes
r/linux • u/rain5 • May 28 '16
View all comments
Show parent comment
72
u/inhuman44 May 29 '16
Except systemd isn't causing a problem.
Ending all of the user's processes when that user's session ends is how it should work. This is in inline with Rule of Least Surprise. These are settings that any rational user would expect: I log out, my programs close.
If for some reason you want to make an except to the general rule and don't want your program to exit on session end there is a mechanism to facilitate that. This too makes perfect sense, most user programs should be exiting on session end; if a process is to be an exception then it should be so explicitly. Defaulting to the exceptional case is just bad design.
Finally there exists a small handful of user programs (like tmux) that always stay alive after user logout. For the sake of convenience, there is a mechanism for these programs to stay alive after session end implicitly.
If the distros and package maintainers want to change the default behaviour for the sake of tradition, or to cater to a certain type of user, or for backwards compatibility, or whatever that is fine. All the power to them. But that is not a reason for the upstream developers to abandon sane defaults.