Answers for "System has not been booted with systemd as init system (PID 1). Can't operate. windows error"

3

System has not been booted with systemd as init system (PID 1). Can't operate. windows error

sudo -b unshare --pid --fork --mount-proc /lib/systemd/systemd --system-unit=basic.target

sudo -E nsenter --all -t $(pgrep -xo systemd) runuser -P -l $USER -c "exec $SHELL"

#this will enable systemctl command for linux ubuntu subsystem on windows
Posted by: Guest on March-27-2022
2

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

sudo service <service-name> start
Posted by: Guest on August-25-2021

Code answers related to "System has not been booted with systemd as init system (PID 1). Can't operate. windows error"

Browse Popular Code Answers by Language