chore: standardize deploy script to match template

Remove unused $PublishTimeoutSeconds param. Add sc.exe description for
service metadata.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 08:14:33 -05:00
parent 955fbc5539
commit a308b7982b
+1 -1
View File
@@ -23,7 +23,6 @@ Param(
[string]$Domain, [string]$Domain,
[string]$User, [string]$User,
[switch]$UseLocalSystem, [switch]$UseLocalSystem,
[int]$PublishTimeoutSeconds = 180,
[int]$ServiceStopTimeoutSeconds = 30, [int]$ServiceStopTimeoutSeconds = 30,
[int]$ServiceStartTimeoutSeconds = 30 [int]$ServiceStartTimeoutSeconds = 30
) )
@@ -218,6 +217,7 @@ function Create-Service($name, $bin, $urls, [PSCredential]$credential, [bool]$us
} }
# Set recovery to restart on failure # Set recovery to restart on failure
sc.exe failure $name reset= 86400 actions= restart/60000/restart/60000/restart/60000 | Out-Null sc.exe failure $name reset= 86400 actions= restart/60000/restart/60000/restart/60000 | Out-Null
sc.exe description $name 'PEP nesting data API service' | Out-Null
} }
function Start-ServiceSafe($name) { function Start-ServiceSafe($name) {