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

Improve service init script and logs #147

Merged
merged 3 commits into from
Sep 26, 2022
Merged

Conversation

josesa-xx
Copy link
Contributor

@josesa-xx josesa-xx commented Sep 11, 2022

  • Fixed init service script to allow proper 'start' and 'stop' actions consistently.
    I kept struggling that service start only worked after killing the distro because
    sometimes it didn't stop properly leaving processes running and without pid file
  • Added service 'status' and 'restart' actions
  • Added additional service debug by setting environment variable DEBUG, ie:
    wsl.exe -d wsl-vpnkit DEBUG=1 service wsl-vpnkit stop
  • Changed order in startup welcome screen having stop followed by start,
    this makes it easier for users to just copy/paste from welcome screen to have
    service running
  • Added log check command to see only the latest service execution logs
  • Added to README how to do start with status firt and how to enable DEBUG
  • Service tests added in distro/test.sh running with and without DEBUG enabled

@sakai135
Copy link
Owner

Thanks, I'll try to review this sometime this week.

@josesa-xx
Copy link
Contributor Author

Do you need any clarification ?

- Fixed init service script to allow proper 'start' and 'stop' actions consistently.
  I kept struggling that service start only worked after killing the distro because
  sometimes it didn't start/stop properly leaving processes running and without pid
  file
- Added service 'status' action
- Added additional service debug by setting environment variable DEBUG, ie:
  wsl.exe -d wsl-vpnkit DEBUG=1 service wsl-vpnkit stop
- Changed order in startup welcome screen having stop followed by start,
  this makes it easier for users to just copy/paste from welcome screen to have
  service running
- Added log check command to see only the latest service execution logs
- Added to README how to do start with status firt and how to enable DEBUG
- Run tests twice with and without DEBUG enabled
@sakai135
Copy link
Owner

Sorry for the wait.

@sakai135 sakai135 merged commit dc94c08 into sakai135:main Sep 26, 2022
@josesa-xx
Copy link
Contributor Author

Thanks, please make a new release when possible.

sakai135 added a commit that referenced this pull request Nov 17, 2022
sakai135 added a commit that referenced this pull request Nov 21, 2022
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

Successfully merging this pull request may close these issues.

2 participants