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

shutdown error #9181

Closed
1 of 2 tasks
sucicf1 opened this issue Nov 20, 2022 · 1 comment
Closed
1 of 2 tasks

shutdown error #9181

sucicf1 opened this issue Nov 20, 2022 · 1 comment
Labels

Comments

@sucicf1
Copy link

sucicf1 commented Nov 20, 2022

Version

Microsoft Windows [Version 10.0.22621.819] WSL version: 1.0.0.0

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.74.2

Distro Version

Debian 11.5, ubuntu preview 22.10

Other Software

No response

Repro Steps

execute inside wsl distro the command:
sudo shutdown now

Expected Behavior

the wsl distro and all of it services are shutdown without errors

Actual Behavior

after executing the command sometimes the apache2 doesn't get terminated and always getting the error inside windows terminal [process exited with code 1 (0x00000001)]. If we don't use windows terminal than it sometimes doesn't display error

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 22, 2022

Thanks for reporting this @sucicf1.

The best way to do this is via wsl.exe --terminate <distro-name> to terminate the distribution, or wsl.exe --shutdown to stop all distributions.

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

No branches or pull requests

2 participants