PowerShell / DSC

This repo is for the DSC v3 project
MIT License
133 stars 22 forks source link

Handle Restart Dependencies #451

Open tgauth opened 3 weeks ago

tgauth commented 3 weeks ago

Summary of the new feature / enhancement

Relating to #50, as a user I want to know any dependencies of my process/service that needs restarting so that I'm fully aware of the impacts/overhead of restarting.

Proposed technical implementation details (optional)

No response

SteveL-MSFT commented 3 weeks ago

From the meeting, I think two different aspects should be covered:

Perhaps we can have two additional optional top level properties to _restartRequired:

_restartRequired:
  service:
    name: sshd
    id: 1234
  dependentsAffected:
    service:
      name: foo
      id: 1234
    process:
      name: bar
      id: 1234
  restartRequired:
    service:
      name: hello
    process:
      name: world  

Where both are arrays. Still would need a real world scenario for restartRequired that would not include dependents that auto-restart if the top service/process is restarted.