We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502eed0 commit f246e23Copy full SHA for f246e23
1 file changed
scripts/powershell/maintenance.ps1
@@ -9,6 +9,12 @@ param(
9
$logsDir = Join-Path $BaseInstallPath "logs"
10
$maintenanceLogFile = Join-Path $logsDir "maintenance.log"
11
12
+if (-not (Test-Path $logsDir)) {
13
+ New-Item -Path $logsDir -ItemType Directory -Force | Out-Null
14
+}
15
+
16
17
18
$services = Get-Service |
19
Where-Object { $_.Name -like "Gateway-*" } |
20
ForEach-Object {
@@ -199,6 +205,8 @@ function Archive-PACS {
199
205
200
206
$startStopTimeoutSeconds = 30
201
207
208
+Rotate-LogFile -LogFile $maintenanceLogFile -RetainCount 5
209
202
210
switch ($Action) {
203
211
204
212
"RotateLogs" {
0 commit comments