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

Service command not found #5

Closed
uanid opened this issue Jul 30, 2020 · 4 comments
Closed

Service command not found #5

uanid opened this issue Jul 30, 2020 · 4 comments
Assignees
Labels
enhancement Other enhancements

Comments

@uanid
Copy link

uanid commented Jul 30, 2020

When I run command service docker start
The console says -bash: service: command not found

How do I run service command?

I tried to search service binary to /usr/sbin, /sbin, /usr/bin, etc...
But I can't find the service binary anywhere.

@yosukes-dev
Copy link
Owner

Amazon Linux 2 comes with the same benefits as Amazon Linux, but it adds some new capabilities:
systemd: replacing SystemVinit

This means you have to use systemctl instead of the service command.
But currently systemd does not work with WSL.
So, you need to use a helper like genie.

@yosukes-dev yosukes-dev added the wontfix This will not be worked on label Aug 14, 2020
@yosukes-dev yosukes-dev self-assigned this Aug 14, 2020
@yosukes-dev
Copy link
Owner

Please try the following steps.

1 yum upgrade -y && yum update -y
2 amazon-linux-extras install -y kernel-ng

#6 (comment)

@yosukes-dev yosukes-dev added enhancement Other enhancements and removed wontfix This will not be worked on labels Aug 16, 2020
@volkancakil
Copy link

volkancakil commented Aug 23, 2020

i have made few modifications on @shayne wsl2-hacks repo to get systemd support on Amazon Linux.
Please follow this steps WSL2 Amazon Linux systemd support

@uanid
Copy link
Author

uanid commented Aug 24, 2020

@volkancakil Great work!!

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

No branches or pull requests

3 participants