Kiln » KilnSupportScripts Powershell Scripts to help monitor a Kiln environment. Contact Fog Creek support before using.
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

change Check-KilnBackend to not take a log file.

Changeset 3cc15ed8c4a3

Parent 082ee7713ada

by Profile picture of User 476Ben McCormack <benm@fogcreek.com>

Changes to one file · Browse files at 3cc15ed8c4a3 Showing diff from parent 082ee7713ada Diff from another changeset...

Change 1 of 1 Show Entire File checkBackend.ps1 Stacked
 
35
36
37
38
 
39
40
41
 
42
43
44
45
46
 
47
48
49
 
35
36
37
 
38
39
40
 
41
42
43
44
45
 
46
47
48
49
@@ -35,15 +35,15 @@
  }  }   -function Check-KilnBackend([string] $sRepoGUID, [string] $sChangeset1, [string] $sChangeset2, [string] $logFile){ +function Check-KilnBackend([string] $sRepoGUID, [string] $sChangeset1, [string] $sChangeset2){   if (-Not ((Test-KilnVersion) -and (Test-KilnDiff $sRepoGUID $sChangeset1 $sChangeset2))){   #Restart the Kiln storage Service because something bad happened - write "$(Get-Date -format o) Something is wrong. Restarting Kiln Storage Service" | out-file -append $logFile + write "$(Get-Date -format o) Something is wrong. Restarting Kiln Storage Service"   Restart-Service "KilnStorageService"   return False   }   else { - write "$(Get-Date -format o) Kiln backend is OK" | out-file -append $logFile + write "$(Get-Date -format o) Kiln backend is OK"   return True   }  }