why "systemctl" not working in Ubuntu terminal on Windows?

Yana  picture Yana · Feb 3, 2019 · Viewed 14.9k times · Source

I need to reload the daemon using systemctl command in ubuntu terminal on window 10. I attached the error I received. Please Help me on this.

error: bashdos@yana:~$ systemctl System has not been booted with systemd as init system (PID 1). Can't operate.

Thank in advanced.

Answer

WSLUser picture WSLUser · Mar 5, 2019

WSL doesn't have systemd implemented therefore in Ubuntu you need to run for example "service start ssh" or you can call the binary directly such as /etc/init.d/ssh start/stop/restart.