windows-subsystem-for-linuxsystemctlstart-stop-daemon

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


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

The error:

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

Solution

  • 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.