4 ms·
Take a look at this: https://github.com/tmux/tmux/issues/428 https://github.com/tmux/tmux/issues/428
by deno 8y ago
Take a look at this: https://github.com/tmux/tmux/issues/428 https://github.com/tmux/tmux/issues/428
- erik_seaberg 8y agoI see arguing but no consensus on what ought to be done. My use case: I run a shell pipeline that will probably take all weekend to finish. On a POSIX box I start it with nohup. What do I do on a systemd box? Does nohup need a patch that doesn't exist yet?
- inferiorhuman 8y agoI expect that the formal answer is that you should be running that within the service framework (be it systemd or other). My answer is: if you want POSIX-like behavior don't run it on Linux.
- MertsA 8y agoThere's a couple ways to work around the issue, you can just configure systemd to not kill processes that were in the user scope when the user scope is closed in which case it behaves exactly as it did before. Or if you want to keep systemd cleaning up hung applications but not e.g. some script that you typically ran with nohup you can just use systemd-run instead. https://www.freedesktop.org/software/systemd/man/systemd-run.html https://www.freedesktop.org/software/systemd/man/systemd-run... In particular you'd probably want --user so that it runs it under your user instance of systemd and --scope so that it's all run under a scope for that command instead of just a transient service. For most uses of nohup you could literally just make it an alias for systemd-run --user --scope instead.