skip to Main Content

Fixed: System has not been booted with systemd as init

Fixed: System Has Not Been Booted With Systemd As Init

If you are using Ubuntu inside Windows using WSL, you will have the SysV instead of systemd and you will get an error “System has not been booted with systemd as init system (PID 1). Can’t operate.” when you run the systemctl command.

If you want to know which init system you are using, you can use the command below to know the process name associate with PID 1:

ps -p 1 -o comm=

The above output tells you that your system is using SysV.

How to fix ‘System has not been booted with systemd’ error?

To fix the error, you need to use the equivalent sysvinit command instead of systemctl command.

This table will help you how to use sysvinit instead of systemctl.

Systemd commandSysvinit command
systemctl start service_nameservice service_name start
systemctl stop service_nameservice service_name stop
systemctl restart service_nameservice service_name restart
systemctl status service_nameservice service_name status
systemctl enable service_namechkconfig service_name on
systemctl disable service_namechkconfig service_name off

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top
Search