Originally posted by kobblestown
View Post
Announcement
Collapse
No announcement yet.
Systemd 230 Is Upsetting Some Over Its KillUserProcess Setting
Collapse
X
-
Originally posted by balouba View Posti like that it kills user processes. it how it should be. terminate a session, it has to be terminated. unclean setups gotta clean it up.
The thing is, that is already handled. Unix has a process hiearachy. All processes started in a user session are child processes of the login, and already killed on exit when their parent process dies.
So what they end up killing extra now, are processes that explicitly have been set to survive logout.
- Likes 1
Comment
-
Originally posted by carewolf View Post
The thing is, that is already handled. Unix has a process hiearachy. All processes started in a user session are child processes of the login, and already killed on exit when their parent process dies.
So what they end up killing extra now, are processes that explicitly have been set to survive logout.
Blah blah blah blame the distro for not reading the patch note NO! Fix the issue, if distro's don't have that they still have the issue of zobie processes.
if you logout the session will only end if all processes inside it terminate. The problem is, that there are a bunch of processes that only terminate when the session ends.
Fix that not get your big brother systemd to hit everyone
Comment
-
Originally posted by c117152 View PostWhat are they complaining about? It's a completely reasonable default to kill off processes on logoff.
Comment
-
Originally posted by Naib View Post
EXACTLY. tmux behaving correctly, using what exist (daemon() et all) and because dbus and GNOME are not cleaning up after themselves in comes systemd and sets as default the "kill everything" why the hell not fix the actual problem.
Blah blah blah blame the distro for not reading the patch note NO! Fix the issue, if distro's don't have that they still have the issue of zobie processes.
if you logout the session will only end if all processes inside it terminate. The problem is, that there are a bunch of processes that only terminate when the session ends.
Fix that not get your big brother systemd to hit everyone
- Likes 1
Comment
-
Originally posted by skies View Post
That is plain wrong. It shows you know nothing about UNIX philosophy. If a shell invokes a process/shell-script using "nohup", "screen" or "tmux" it should run in the background indefinitely until 1) process exit by it self 2) the server is rebooted. For processes put in the background using the shells normal job control (bg/fg/jobs) it is ok to terminate these up on logout.
The fact that you even bring up the UNIX philosophy shows that you don't know hoot about it.
It has nothing to do with the UNIX philosophy itself, nor does systemd break nohup. Quite to the contrary, it actually extends and sanitises nohup.
From the changelog:
While the user is logged in at least once, [email protected] 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 [email protected] The same command works for tmux.
After the user logs out of all sessions, [email protected] 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.
- Likes 1
Comment
-
-
Originally posted by skies View Post
That is plain wrong. It shows you know nothing about UNIX philosophy. If a shell invokes a process/shell-script using "nohup", "screen" or "tmux" it should run in the background indefinitely until 1) process exit by it self 2) the server is rebooted. For processes put in the background using the shells normal job control (bg/fg/jobs) it is ok to terminate these up on logout.
Comment
-
Originally posted by Naib View PostBoo fucking hoo... fix the damn bug, don't expect others to change to facilitate a broken concept.
Consider that this killage is getting logged, so it's also easy to see where the bugs are.
So far only a couple special things need to adjust to it, the rest are perfectly fine.
As unixfan posted above, they also modified the settings allowing the user to set the "run after I log out" setting even if he isn't root.
Comment
-
> Shouldn't this code be part of glibc instead of tmux? -- Nicholas Marriott, 2011
> If you want to change how processes daemonize, why don't you change how daemon() is implemented [...] ? -- Nicholas Marriott, 2016
* https://news.ycombinator.com/item?id=11798173
* https://news.ycombinator.com/item?id=11798328
This was raised 5 years ago and just IGNORED ... This way zombie processes can be distinguished a bit better from daemon() processes... but noo... change the established norm because GNOME and DBUS can't design an integrated system. Fix the bugs, push the correct functionality where it should (as was reported..) and this is a non-issue.
Or carry on being jerks expecting others to cover your mistakesLast edited by Naib; 30 May 2016, 11:17 AM.
Comment
Comment