Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!.
Source Link
av_admin

The systemctl is now available in wsl

Add these lines to the /etc/wsl.conf note you will need to run your editor with sudo privileges, e.g: sudo nano /etc/wsl.conf

[boot]
systemd=true

And close out of the nano editor using CTRL+O to save and CTRL+X to exit.

With the above steps done, close your WSL distro Windows and run wsl.exe --shutdown from PowerShell to restart your WSL instances. Upon launch you should have systemd running. You can check this with the command systemctl list-unit-files --type=service which should show your services’ status.