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

[1.21 backport] Windows service Subcommand #1280

Closed
luthermonson opened this issue Jul 12, 2021 · 1 comment
Closed

[1.21 backport] Windows service Subcommand #1280

luthermonson opened this issue Jul 12, 2021 · 1 comment
Assignees

Comments

@luthermonson
Copy link
Contributor

Create a service subcommand for windows to add/delete rke2 as a windows service using the service manager calls. This subcommand will be windows only and will not appear or work in linux.

e.g.

rke2 agent service --add
rke2 agent service --delete
@rancher-max
Copy link
Member

I have previously validated using v1.21.3-rc4+rke2r2 that the windows service add and delete are both successful. Users should follow the steps in the docs as they are correct in order to bring this up.

One thing to note, is that after adding the service, you generally will have to start the service:

rke2.exe agent service --add
Get-Service rke2
Start-Service rke2

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