r/linux • • May 28 '16

systemd developer asks tmux (and other programs) to add systemd specific code

https://github.com/tmux/tmux/issues/428
359 Upvotes

509 comments sorted by

View all comments

Show parent comment

12

u/luke-jr May 28 '16

Not for the simple common task of becoming a background daemon.

2

u/pstch May 29 '16

That's because this task is not "becoming a background daemon". Nothing has changed in that, the only thing that changed is that session is now properly enforced by systemd.

I find it perfectly normal for processes started by a session to be killed when it ends. tmux and screen actually only worked because of the lack of proper session enforcement in *NIX.

Now the task is not as simple as "becoming a background daemon". It would rather be binding PAM sessions to tmux sessions. For screen, it could also allow to use PAM for the password protection.

5

u/luke-jr May 29 '16

GNU/Linux "sessions" are merely "descendent processes", which already receive a chained SIGHUP when such a session ends. The processes being killed by systemd are already detaching themselves from the session.