Rebooting WSL in Windows 1803
In past versions of Windows 10, WSL could be exited by closing all active terminals but with the introduction of background tasks in WSL this no longer works. Is there a way to exit WSL without rebooting the host system?
windows-10 windows-subsystem-for-linux windows-10-v1803
add a comment |
In past versions of Windows 10, WSL could be exited by closing all active terminals but with the introduction of background tasks in WSL this no longer works. Is there a way to exit WSL without rebooting the host system?
windows-10 windows-subsystem-for-linux windows-10-v1803
Stop the background task from wsl.
– Biswapriyo
May 3 '18 at 17:27
Background task create a process withwslhost.exe
executable. One may kill that process but the result will be catastrophic.
– Biswapriyo
May 3 '18 at 17:30
I suppose setting up an alias to kill all background tasks and exit would work, it just feels like far too much of a hack. But if that's what it takes, that's what I'll do
– laverya
May 3 '18 at 18:30
add a comment |
In past versions of Windows 10, WSL could be exited by closing all active terminals but with the introduction of background tasks in WSL this no longer works. Is there a way to exit WSL without rebooting the host system?
windows-10 windows-subsystem-for-linux windows-10-v1803
In past versions of Windows 10, WSL could be exited by closing all active terminals but with the introduction of background tasks in WSL this no longer works. Is there a way to exit WSL without rebooting the host system?
windows-10 windows-subsystem-for-linux windows-10-v1803
windows-10 windows-subsystem-for-linux windows-10-v1803
asked May 3 '18 at 14:53
laveryalaverya
15318
15318
Stop the background task from wsl.
– Biswapriyo
May 3 '18 at 17:27
Background task create a process withwslhost.exe
executable. One may kill that process but the result will be catastrophic.
– Biswapriyo
May 3 '18 at 17:30
I suppose setting up an alias to kill all background tasks and exit would work, it just feels like far too much of a hack. But if that's what it takes, that's what I'll do
– laverya
May 3 '18 at 18:30
add a comment |
Stop the background task from wsl.
– Biswapriyo
May 3 '18 at 17:27
Background task create a process withwslhost.exe
executable. One may kill that process but the result will be catastrophic.
– Biswapriyo
May 3 '18 at 17:30
I suppose setting up an alias to kill all background tasks and exit would work, it just feels like far too much of a hack. But if that's what it takes, that's what I'll do
– laverya
May 3 '18 at 18:30
Stop the background task from wsl.
– Biswapriyo
May 3 '18 at 17:27
Stop the background task from wsl.
– Biswapriyo
May 3 '18 at 17:27
Background task create a process with
wslhost.exe
executable. One may kill that process but the result will be catastrophic.– Biswapriyo
May 3 '18 at 17:30
Background task create a process with
wslhost.exe
executable. One may kill that process but the result will be catastrophic.– Biswapriyo
May 3 '18 at 17:30
I suppose setting up an alias to kill all background tasks and exit would work, it just feels like far too much of a hack. But if that's what it takes, that's what I'll do
– laverya
May 3 '18 at 18:30
I suppose setting up an alias to kill all background tasks and exit would work, it just feels like far too much of a hack. But if that's what it takes, that's what I'll do
– laverya
May 3 '18 at 18:30
add a comment |
3 Answers
3
active
oldest
votes
Yes, it is.
As an Administrator restart the windows Service "LxssManager" on Windows 10.
This does a clean boot of the WSL.
The services in the Linux Subsystem - for example xrdp - must be restarted if not enabled for autostart.
add a comment |
WIN+R ->services.msc
Find
LxssManager
Right-click ->
Restart
add a comment |
A Powershell solution
Get-Service LxssManager | Restart-Service
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1319478%2frebooting-wsl-in-windows-1803%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes, it is.
As an Administrator restart the windows Service "LxssManager" on Windows 10.
This does a clean boot of the WSL.
The services in the Linux Subsystem - for example xrdp - must be restarted if not enabled for autostart.
add a comment |
Yes, it is.
As an Administrator restart the windows Service "LxssManager" on Windows 10.
This does a clean boot of the WSL.
The services in the Linux Subsystem - for example xrdp - must be restarted if not enabled for autostart.
add a comment |
Yes, it is.
As an Administrator restart the windows Service "LxssManager" on Windows 10.
This does a clean boot of the WSL.
The services in the Linux Subsystem - for example xrdp - must be restarted if not enabled for autostart.
Yes, it is.
As an Administrator restart the windows Service "LxssManager" on Windows 10.
This does a clean boot of the WSL.
The services in the Linux Subsystem - for example xrdp - must be restarted if not enabled for autostart.
answered Jul 4 '18 at 13:30
det13egdet13eg
8612
8612
add a comment |
add a comment |
WIN+R ->services.msc
Find
LxssManager
Right-click ->
Restart
add a comment |
WIN+R ->services.msc
Find
LxssManager
Right-click ->
Restart
add a comment |
WIN+R ->services.msc
Find
LxssManager
Right-click ->
Restart
WIN+R ->services.msc
Find
LxssManager
Right-click ->
Restart
answered Aug 10 '18 at 0:05
samddsamdd
7292511
7292511
add a comment |
add a comment |
A Powershell solution
Get-Service LxssManager | Restart-Service
add a comment |
A Powershell solution
Get-Service LxssManager | Restart-Service
add a comment |
A Powershell solution
Get-Service LxssManager | Restart-Service
A Powershell solution
Get-Service LxssManager | Restart-Service
answered Feb 11 at 10:02
Frank FuFrank Fu
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1319478%2frebooting-wsl-in-windows-1803%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Stop the background task from wsl.
– Biswapriyo
May 3 '18 at 17:27
Background task create a process with
wslhost.exe
executable. One may kill that process but the result will be catastrophic.– Biswapriyo
May 3 '18 at 17:30
I suppose setting up an alias to kill all background tasks and exit would work, it just feels like far too much of a hack. But if that's what it takes, that's what I'll do
– laverya
May 3 '18 at 18:30