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

[Feature Request] Make it possible to specify the recovery options for a packaged service #574

Open
ynborokh opened this issue Apr 3, 2023 · 1 comment
Labels
Area-MSIX General MSIX issues Feature New feature or request

Comments

@ynborokh
Copy link

ynborokh commented Apr 3, 2023

I didn't find any possibility of setting the recovery options for a service added to an MSIX package. The service is added to the package manifest as a desktop6:Service element as described here. But after the package is installed, all recovery options for the service are set to Take no action:
image
And there is no possibility to change them neither manually:
image
nor via the sc failure cmd command (Result: Error: OpenService FAILED 5: Access is denied. is returned), nor from OpenService function call (it returns NULL and the GetLastError returns ACCES_DENIED=5 code), even if cmd and code are launched with the elevated privileges. It stops me from using this approach because I would like to rely on the service, so I want to set a restart recovery action. But with the Take no action recovery action, once the service process crashes, it will never be restarted by OS.
Is it possible to add this tuning?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue needs to be triaged by a member of the core team label Apr 3, 2023
@anarvekar-msft anarvekar-msft added Feature New feature or request Area-MSIX General MSIX issues and removed Needs-Triage Issue needs to be triaged by a member of the core team labels Apr 3, 2023
@bmoore117
Copy link

Would love this feature as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-MSIX General MSIX issues Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants