-
Notifications
You must be signed in to change notification settings - Fork 812
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
Windows Bash services are stopped when closing the Bash tab #709
Comments
Thanks @Skalin The ability to run without having a terminal open is a heavily requested feature for daemons, cron jobs, and other scenarios. Please vote on the User Voice page listed above (thanks @rodrymbo). Also note that we are pretty locked down for the Anniversary Update but will be looking at this for future releases. |
There is a trick, just run a copy of bash.exe with the third-party run.exe program on startup. |
Why the hell would I use thirt-party program to start something implemented in Windows? |
@Skalin I dunno, because right now the feature that you want isn't directly supported, and for the moment it's your only choice to get the annoying black window off of your screen! The feature for windows says it is in beta when you installed it, but it might be better called an alpha, because the feature list isn't frozen. the manpage is available here: Also, I don't work for Microsoft, and I'm just trying to help you out, so there's no need to be short with me. |
Thanks for pointing out run.exe @fpqc. I have not tried it myself and it is good to know that there is a potential work-around for people who want to run without a console window up. You have mentioned it in a few other threads and it looks like a useful tool for many. I am always amazed at this community and it's ability to work around features we simply haven't had time to implement. It just shows the desire for WSL as a whole. Rest assured we will continue to work on natively supporting many of these features. Until then, workarounds like this may be required for some scenarios. Please keep the feature requests, and the potential workarounds, piling in. |
@russalex Great to hear that you are warming up for the next round of great stuff :) @fpqc maybe you can also open a topic about running in the background on http://wsl-forum.qztc.io/ |
+1 for WSL as a service, sorely needed to get cygwin off the desktop. |
@fpqc run.exe works beautifully. I'm just curious why you would run a copy of bash.exe rather than point it to c:\windows\system32\bash.exe? I find this is working fine. |
@lawre idk it's already in the Windows PATH, why would I write the full path to bash.exe when it lives in system32? |
@xilun idk, I made an account on that forum and never got the confirmation email =p |
@fpqc -- could you try again?, and check your spam filters? I'm currently hosting that forum, but the hosting provider has been flaky. If it doesn't work, I may migrate elsewhere. |
@aseering found it in my e-mail spam folder. Cool registered |
Hi everyone, I had problem with cron service, but I solved it with node-cron and forever... Thats works... |
from todays 17046 release notes.
wow! how? |
I will update that wording slightly. This support enables processes to run after the last terminal has been closed. There is not yet a direct mechanism for starting processes at boot, etc. |
Nice. But you probably saw this coming.
What is the preferred method to shut down daemony things that get launched? In this case they were a side effect of opening a large popular application that helpfully autostarts stuff it needs. I assume killing them manually by PID is the way to go for now. As a total side note, that |
WSL no longer panics when the last console instance is closed. Available in Spring Creators. |
Any way to disable this 'new feature' ? |
Short answer is you can kill off the WSL instance with Longer answer. I suppose it would be possible to put an exit trap in your |
This is just a FEATURE!
The text was updated successfully, but these errors were encountered: