Fix "system has not been booted with systemd as init system (pid 1). can't operate" Error

Fix “system has not been booted with systemd as init system (pid 1). can’t operate” Error

How To Fix “system has not been booted with systemd as init system (pid 1). can’t operate” Error

First, let’s have a look at the source of the error. You will get the System has not been booted with systemd as init system (PID 1). Can’t operate error when you run the command sudo systemctl start in your command.

If the above statement is true then we guess you are using Ubuntu inside Windows using WSL and your Linux system is not using systemd.

Fix “system has not been booted with systemd as init system (pid 1). can’t operate” Error

Ubuntu inside Windows using WSL. uses SysV instead of systemd. Now, run the following command to PID 1 process name.

ps -p 1 -o comm=

One of the best solutions for the error system that has not been booted with systemd as init system (pid 1) is to use the alternate command of a system that does the same job. As your system is not using systemd, You can run the equivalent sysvinit command instead of systemd. You can find the list of alternative command to systemd command

 

sysvinit Commandsystemd Command
systemctl start exampleservice example start
systemctl stop exampleservice example stop
systemctl restart exampleservice example restart
systemctl reload exampleservice example reload
systemctl condrestart exampleservice example condrestart
systemctl status exampleservice example status
systemctl enable examplechkconfig example on
systemctl disable examplechkconfig example off
systemctl is-enabled examplechkconfig example –list
systemctl list-unit-files –type=servicechkconfig
systemctl daemon-reloadchkconfig example –add
READ More Relevant Stuff:  10+ Basic Cat Command Examples in Linux [2023]

For another error

Docker System has not been booted with systemd as init system

Try to use: sudo /etc/init.d/docker start instead of systemd.

 

Let us know if we are able to solve your issue. if you have any alternative solution for this problem then please let us know. We would love to update our blog post.

 

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

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