Restart Action Preference

Open
#1,371 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
devops

Research direction

Start by tracing how DSC config document properties are parsed and how resource restart requests are processed. Define the behavior for the proposed process, service, and system values, including the default continue behavior, then verify that stop prevents further execution until a higher-order tool can reboot and resume.

Written by the indexing model from the issue text.

Description

Issue-Enhancement Needs Triage
Summary of the new feature / enhancement

As a user I want the ability to specify that DSC should stop executing a config doc when a restart requested is returned from a resource.

In DSC v1 LCM the resources executed one at a time and if a reboot is requested the LCM will initiate and then continue. I do not expect DSC to recreate this feature but it should have the ability to stop executing so a higher order tool can reboot and then continue.

Some use cases where I have ran into this particular issue:

  • Installing Windows components/features
  • Installing/Upgrading software

For resource blocks that require the reboot/restart to happen before the resource can properly test or configure the system.

Proposed technical implementation details (optional)

A new config doc property called restartRequiredAction with a default value of continue (the current behavior) and stop. The property should

restartRequiredAction:
  process: continue
  service: stop
  system: stop
Dominant language
Rust
Stars
546
Forks
84
Avg merge
2d 9h
Merged PRs (30d)
25

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/DSC

All issues in PowerShell/DSC

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.