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/[deleted] May 29 '16 edited May 29 '16

If you go purely off of the description there:

The daemon() function is for programs wishing to detach themselves from the controlling terminal and run in the background as system daemons.

Then I think in order to be a "system daemon" in this case would require interfacing with systemd since it manages your systems daemons.

As a user though I prefer more explicit behavior so users know what will and will not run beyond their users session. I admit I do not know what the ramifications of amending that description to be "user daemon" on systemd would be though since most services should be configured properly already.

9

u/redrumsir May 29 '16

The daemon() function is for programs wishing to detach themselves from the controlling terminal and run in the background as system daemons.

Don't get hung up on the word "system daemons". It's for any daemonization ... not just for systems daemons. It's what tmux uses. This long-standing behavior for that API/call will be broken by systemd changing the default.

This change to systemd will break longstanding behavior ... all to handle a symptom of some other broken programs (bug report indicated that a GNOME session wasn't cleaning up after itself on logout). I say they should fix the actual problems, instead of breaking the daemon call.