Replies: 6 comments 2 replies
-
Hi, I am having the same issue. Are there plans to fix this issue so that we do not need |
Beta Was this translation helpful? Give feedback.
-
Hi, I've met this issue these days, because I construct a new PC. I found a WA for this, using |
Beta Was this translation helpful? Give feedback.
-
Adding this to your .bashrc makes it a bit less clumsy:
|
Beta Was this translation helpful? Give feedback.
-
You can force WSL2 to keep running with: [wsl2]
vmIdleTimeout=-1
in %userprofile%/.wslconfig See #10138 |
Beta Was this translation helpful? Give feedback.
-
Any progress about this issue? I have met the same problem too. When I don't operate the wsl for some time, the wsl won't react for anymore, I have to shut it down and restart it. |
Beta Was this translation helpful? Give feedback.
-
The following works for me
Even if all terminals are now closed, WSL2 continues to run for me until I explicitly call I had seen the solution here: #10138 |
Beta Was this translation helpful? Give feedback.
-
I use WSL2 with systemd and run lots of background services. But WSL2 shuts down itself seconds after i exit all terminals. To prevent this from happening, i have to launch a command like
nohup sleep 100d &
. There must be a way to disable that auto shutdown behavior in a non hacky way; %UserProfile%/.wslconfigvmIdleTimeout=-1
is not working or not doing what its name implies described.Beta Was this translation helpful? Give feedback.
All reactions