How to Restart WSL Without Rebooting Your Computer
On a regular Linux, we would use this command to restart the computer:
1 |
sudo shutdown -r now |
When we try that in WSL (Windows Subsystem for Linux), we end up with this error message: System has not been booted with systemd as init system (PID 1). Can’t operate. Failed to connect to bus: Host is down Failed to …