Rebooting WSL in Windows 1803












4















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?










share|improve this question























  • 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
















4















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?










share|improve this question























  • 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














4












4








4








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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



















  • 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

















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










3 Answers
3






active

oldest

votes


















7














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.






share|improve this answer































    2
















    1. WIN+R -> services.msc


    2. Find LxssManager



      enter image description here




    3. Right-click -> Restart



      enter image description here








    share|improve this answer































      0














      A Powershell solution



      Get-Service LxssManager | Restart-Service





      share|improve this answer























        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
        });


        }
        });














        draft saved

        draft discarded


















        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









        7














        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.






        share|improve this answer




























          7














          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.






          share|improve this answer


























            7












            7








            7







            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.






            share|improve this answer













            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 4 '18 at 13:30









            det13egdet13eg

            8612




            8612

























                2
















                1. WIN+R -> services.msc


                2. Find LxssManager



                  enter image description here




                3. Right-click -> Restart



                  enter image description here








                share|improve this answer




























                  2
















                  1. WIN+R -> services.msc


                  2. Find LxssManager



                    enter image description here




                  3. Right-click -> Restart



                    enter image description here








                  share|improve this answer


























                    2












                    2








                    2









                    1. WIN+R -> services.msc


                    2. Find LxssManager



                      enter image description here




                    3. Right-click -> Restart



                      enter image description here








                    share|improve this answer















                    1. WIN+R -> services.msc


                    2. Find LxssManager



                      enter image description here




                    3. Right-click -> Restart



                      enter image description here









                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 10 '18 at 0:05









                    samddsamdd

                    7292511




                    7292511























                        0














                        A Powershell solution



                        Get-Service LxssManager | Restart-Service





                        share|improve this answer




























                          0














                          A Powershell solution



                          Get-Service LxssManager | Restart-Service





                          share|improve this answer


























                            0












                            0








                            0







                            A Powershell solution



                            Get-Service LxssManager | Restart-Service





                            share|improve this answer













                            A Powershell solution



                            Get-Service LxssManager | Restart-Service






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Feb 11 at 10:02









                            Frank FuFrank Fu

                            1011




                            1011






























                                draft saved

                                draft discarded




















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                Eduardo VII do Reino Unido