Distributors ponder a systemd change
Distributors ponder a systemd change
Posted Jun 8, 2016 4:56 UTC (Wed) by drag (guest, #31333)Parent article: Distributors ponder a systemd change
What it actually accomplishes is that it helps systemd be a better session management for users. When users log out they don't usually want to have a bunch of processes lingering unless they explicitly expect it. Systemd brings the session into the world and it should be the one to take it out.
What I do NOT like is the fact that if you want to have link to a new dependency to have a program indicate to systemd that it needs to keep running. I especially don't like the idea of tying it into PAM or any such thing. And tmux/screen are not the only types of programs that I may want to linger around. I may want IRC bots, for example. Or have a program that collects and indexes my mail. Or some protein folding application, or whatever.
I should be able to tell systemd that I want a program last past logout. I should be able to do this with a entry in a service file or a systemctl command.
This way I can take full advantage of systemd to handle 'daemonizing' and logging and all that happy stuff without any effort, which will make things much simpler for me. I can program in whatever language I feel without having to figure out how to link it to a new library. And I still will be able to retain the benefits of having systemd kill any lingering process automatically that I don't explicitly tell systemd to leave alone.
To conclude:
I figure just A) add a option to systemctl/service files. B) make it possible for admins to disable the linger feature completely.. and then you have the problem largely solved. Distributions can wrap 'tmux' or 'screen' in a shell script to retain the old behavior if they want. Nobody will have to make significant changes to their programs to fit into systemd either.