Skip to content
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

cannot start a program using systemctl #7

Closed
tangly1991 opened this issue Sep 7, 2021 · 3 comments
Closed

cannot start a program using systemctl #7

tangly1991 opened this issue Sep 7, 2021 · 3 comments

Comments

@tangly1991
Copy link

cannot start a program using systemctl

@mishamosher
Copy link
Owner

Hi there!

systemd is not supported on WSL: systemctl doesn't work

There is a Python script that replicates a good portion of the systemctl functionality, which may be of help: docker systemctl replacement

@zljubisic
Copy link

As systemd is now supported by wsl (https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/) can we have it in centos as well?

@mishamosher
Copy link
Owner

@zljubisic

The required config changes for native systemd support are very minimal, and there are many other configs that can be applied: https://learn.microsoft.com/en-us/windows/wsl/wsl-config

There is nothing new to "support", because the required under-the-hood systemd changes are baked directly into WSL, and not the individual distros images. For now, you're required to opt-in into this functionality, as described in the official WSL docs.

Additionally, this repo aspires to keep a no-modifications 1:1 copy of the GenericCloud image profile for CentOS, for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants