systemd cat and GNU cat hugging a Linux cat.

  • InnerScientist@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    15 hours ago

    If you run screen/tmux built without systemd support, it will be killed on logout.

    Actually, if you run anything and logout, it will be killed after a timeout. The way to prevent this in systemd land is to enable-linger for that user.

    IMO this is a pretty sane default and it’s easy enough to disable for users

    EDIT: For non-root users

    • mittorn@masturbated.one
      link
      fedilink
      arrow-up
      1
      ·
      14 hours ago

      @InnerScientist This might be good behaviour (especially on shared multiuser system)
      But how often you using shared multiuser systems in 2025? In 2015? In 2010 this might be useful, but now we are using containers instead.
      When you have single root user, single unpriveleged user and few service users, such behaviour is just useless. If interactive user left some services running, it’s usually intentional. And systemd requires notify about this intention every time. Why? It’s just useless complexity.

      • InnerScientist@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        6 hours ago

        And systemd requires notify about this intention every time.

        Systemd requires a one time fee of loginctl enable-linger myserviceuser to never kill processes with a timeout for that user again. This behavior also doesn’t affect system users, only normal users.

        I think the main purpose nowadays is to stop pipewire and other user services that don’t need to consume resources when that user isn’t logged in