Enable Systemd Support in WSL2 (Obsolete)
Since, WSL2 Ubuntu is a trimmed down version of Ubuntu, it doesn't come with systemd support. However, we can make it work using systemd hack.
NOTE: WSL 2 Only
Usage
Run this script in WSL2 (Ubuntu):
Then run (in Windows):
Run WSL again and test systemd by running:
You should see something like this:
Enjoy systemd hack on WSL2!
Source: GitHub
Last updated