Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nohup/tmux processes killed when last terminal closes #1007

Closed
jarussell opened this issue Aug 29, 2016 · 3 comments
Closed

nohup/tmux processes killed when last terminal closes #1007

jarussell opened this issue Aug 29, 2016 · 3 comments

Comments

@jarussell
Copy link

Running nohup sleep 10000 & or tmux +<prefix>d to detach only hang around until the last terminal is closed.

  • Expected results

Programs run in tmux or nohup will last until they are killed by the user.

  • Actual results (with terminal output if applicable)

Processes are killed when the last terminal closes.

  • Your Windows build number

10.0.14393

  • Steps / commands required to reproduce the error

run nohup sleep 10000 &, ps aux to ensure the process is running, close terminal, reopen and run ps aux again.

  • Required packages and commands to install

tmux or coreutils

@rodrymbo
Copy link

rodrymbo commented Aug 29, 2016

Welcome.

It's actually when the last Bash.exe console closes that the environment gets shut down, which is more of a distinction without a difference. Yeah, it's been noted and a fix requested. You can add your vote.

There are some workarounds, which mostly deal with ways to hide that last Bash.exe window so we don't accidentally close it by mistake. Once you have even one hidden Bash.exe window running, you can start lots of things in the background or as daemons. Not perfect, and I haven't seen a way to start things at Windows boot (only at Logon of the user).

#834, #709, #612 etc

@Brian-Perkins
Copy link

Windows Insider Build 17046 allows programs to execute without an active terminal.

@therealkenc
Copy link
Collaborator

Available in Spring Creators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants