Slashdot Mirror


Systemd Starts Killing Your Background Processes By Default (blog.fefe.de)

New submitter nautsch writes: systemd changed a default value in logind.conf to "yes", which will kill all your processes, when you log out... There is already a bug-report over at debian: Debian bug tracker.
The new change means "user sessions will be properly cleaned up after," according to the changelog, "but additional steps are necessary to allow intentionally long-running processes to survive logout. To effectively allow users to run long-term tasks even if they are logged out, lingering must be enabled for them."

2 of 924 comments (clear)

  1. I assumed this was already a default by WarJolt · · Score: 0, Flamebait

    A multi-user system shouldn't allow unpriviledged users from consuming resources indefinitely. It's too easy to starve a system or resources. I think that's one of the reasons behind the isolation dockers provides in the first place. Shut down the container and everything gets cleaned up.

    1. Re:I assumed this was already a default by Peter+H.S. · · Score: -1, Flamebait

      A multi-user system shouldn't allow unpriviledged users from consuming resources indefinitely

      Crippling the service is not a good way to protect the server.

      There are other ways to protect system from users to consume all the resources. Admin can and should setup the server the way it is protected from incompetent/malicious users.

      If you make this protection by killing processes after logout, you are actually removing functionality from it. And for me, it's a step backward.

      A good thing that you are misunderstanding what is happening then; Even with the new settings, no user process will be killed on exit/logout if the user have told the system not to.
      Instead of starting the program with with "nohup" you start it with "systemd-run" instead.
      This is how you start "screen" so it will survive logout: "systemd-run --user --scope".