-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manage services?such as systemctl #18
Comments
How to enable or manage this version of process service? I get an error as soon as I use the command System has not been booted with systemd as init system (PID 1). Can't operate. |
Create a file "/etc/wsl.conf" with content like this: [boot] And reboot wsl. |
It dost not work! |
mv /usr/bin/systemctl /usr/bin/systemctl.old
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl
chmod +x /usr/bin/systemctl |
The problem is solved:
update wsl2 ifself, then the file "/etc/wsl.conf" will take effect. |
For an alternative under WSL1, please see #7 |
Your CentOS9 does not seem to recognize systemctl and service
By the way, do you want something else like Ubuntu-WSL
The text was updated successfully, but these errors were encountered: