PowerShell / PSDscResources

MIT License
129 stars 53 forks source link

Service: Resource missing Recovery Options #69

Open andy1547 opened 7 years ago

andy1547 commented 7 years ago

I'm currently having to implement this manually using the Script Resource with sc.exe, however the TestScript resource is really hacky relies on parsing standard output from sc.exe qfailure "MyService", unfortutantly the Get-Service cmdlet is missing many of the ScriptProperties required to test the state (such as FirstFailure, SecondFailure) on Windows Server 2012 R2 Foundation PS 5.1 (works on Windows 10).

There is a Carbon resource for this but it does not support supplying arguments to the service execution path. Has anybody else tackled this issue?

Out of curiosity, what is the process for merging bugs/features from the xPSDesiredStateConfiguration to PSDscResources and vice versa? It seems like all of the bugs/missing essential features I've encountered apply to both repositories.

kwirkykat commented 7 years ago

@andy1547 We transfer fixes between the two repositories when we find it appropriate. The two modules are fundamentally the same right now, but they may not stay that way. We have some policy differences between the two:

johlju commented 6 years ago

This is similar to issue #83, which proposes recovery actions and this issue proposes recovery options.