1. Aaron Jensen
  2. Carbon
  3. Issues
Issue #131 resolved

Install-Service always restarts service, even if no changes are made to the service configuration

Matt B
created an issue

The expected idempotent behavior would be to only restart the service if configuration changes were actually performed.

Also, only return the service object if any changes were made.

Comments (3)

  1. Aaron Jensen repo owner

    Agreed. I'll add this to the next release, 1.8.1. Fortunately, version 1.8.0 was just released, and contains a Get-ServiceConfiguration function, which you can use to do this check in your code. There is currently no release date for 1.8.1.

  2. Log in to comment