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

replace sc.exe stop/start with restart-service, which is silent

Changeset 5bcd7ecff7db

Parent ab9ea9d9b72f

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

Changes to one file · Browse files at 5bcd7ecff7db Showing diff from parent ab9ea9d9b72f Diff from another changeset...

Change 1 of 1 Show Entire File checkBackend.ps1 Stacked
 
39
40
41
42
43
 
44
45
46
 
39
40
41
 
 
42
43
44
45
@@ -39,8 +39,7 @@
  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 - sc.exe stop "KilnStorageService" - sc.exe start "KilnStorageService" + Restart-Service "KilnStorageService"   }   else {   write "$(Get-Date -format o) Kiln backend is OK" | out-file -append $logFile