aki-k

Results 69 comments of aki-k

@ImmortalD If you setup systemd in WSL 2 with https://github.com/DamionGans/ubuntu-wsl2-systemd-script , WSL 2 won't stop if you close all the shells/terminals. Please note that that repository is not updated any...

Found a fix for this problem: https://github.com/microsoft/WSL/issues/10138#issuecomment-1593856698

@ImmortalD Ok could be a difference in the WSL 2 version. I installed 1.2.5 yesterday.

Try if this fixes it: https://github.com/microsoft/WSL/issues/10138#issuecomment-1590076363

These are all the apt-get commands I've run in the WSL 2 Ubuntu-22.04 instance ``` apt-get update apt-get dist-upgrade apt-get install apache2 apt-get install mesa-utils foot glmark2 glmark2-wayland apt-get update...

@srikker Start the WSL 2 instance like this, and it'll not shutdown automatically: ``` wsl.exe --exec dbus-launch true & bash ```

@srikker You can create a new Windows Terminal profile and define this batch file as its "Command line": ``` @echo off wsl.exe --exec dbus-launch true & bash ```

@hemenge133 If you start up the WSL 2 instance like this, it will continue running even if you close all the shells/terminals: ``` wsl --distribution Ubuntu-22.04 --exec dbus-launch true &...

@berryscone What do you expect Microsoft to do? They've designed WSL 2 so that the instance will automatically shutdown after you've closed the shells that keep it running.