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

6

u/veritanuda May 28 '16

bug with Gnome that would break it if you logged out because it left some processes running.

Well lucky for them that that particular bug was tackled in the latest version

  • systemd-logind will now by default terminate user processes that are part of the user session scope unit (session-XX.scope) when the user logs out. This behavior is controlled by the KillUserProcesses= setting in logind.conf, and the previous default of "no" is now changed to "yes". This means that user sessions will be properly cleaned up after, but additional steps are necessary to allow intentionally long-running processes to survive logout.
   While the user is logged in at least once, user at .service is running,
      and any service that should survive the end of any individual login
      session can be started at a user service or scope using systemd-run.
      systemd-run(1) man page has been extended with an example which    shows how to run screen in a scope unit underneath user at .service. The same command works for tmux.
   After the user logs out of all sessions, user at .service will be
      terminated too, by default, unless the user has "lingering" enabled.
      To effectively allow users to run long-term tasks even if they are
      logged out, lingering must be enabled for them. See loginctl(1) for
      details. The default polkit policy was modified to allow users to
      set lingering for themselves without authentication.
   Previous defaults can be restored at compile time by the
      --without-kill-user-processes option to "configure".

3

u/lolidaisuki May 28 '16

So there is literally no reason for this change anymore?

3

u/23ice23 May 29 '16

http://i.imgur.com/QP0LtnW.png

You're looking at the change. The fix is the behavior you're whining about.

6

u/lolidaisuki May 29 '16

This is how far I bothered to read:

Well lucky for them that that particular bug was tackled in the latest version

It's definitely my bad. But this new anti-feature doesn't fix the Gnome bug, it's a hack so that the Gnome bug doesn't have to be fixed.

-9

u/Ripdog May 29 '16

Are you retarded? The change you're talking about is the one which fixed the gnome bug.

2

u/lolidaisuki May 29 '16

This is how far I bothered to read:

Well lucky for them that that particular bug was tackled in the latest version

It's definitely my bad. But this new anti-feature doesn't fix the Gnome bug, it's a hack so that the Gnome bug doesn't have to be fixed.