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

default changed to NOT attempt to restart any services or reenqueue tasks

Changeset 0714200d90e8

Parent 4cf1dbffa904

by Profile picture of User 1563Quentin Schroeder <quentin@fogcreek.com>

Changes to one file · Browse files at 0714200d90e8 Showing diff from parent 4cf1dbffa904 Diff from another changeset...

 
69
70
71
72
73
74
 
 
 
75
76
77
 
97
98
99
100
 
101
102
103
 
303
304
305
306
307
308
309
 
69
70
71
 
 
 
72
73
74
75
76
77
 
97
98
99
 
100
101
102
103
 
303
304
305
 
306
307
308
@@ -69,9 +69,9 @@
  The name of the IIS Website that FogBugz and Kiln are running under. If you provide this,   the script will attempt to restart IIS if it cannot load the Kiln web page.   -.PARAMETER noRestart - A flag which when set will force the script to only send alert messages and not - attempt to restart any services automatically. +.PARAMETER tryAutoRestart + A flag which when set will modify the behavior of the script to attempt to restart services + which it detects are not running or to reenqueue tasks when too many are found.    .PARAMETER reenqueuePath   The path to the Reenqueue script, this is used to try to resuscitate the Queue when problems are detected. @@ -97,7 +97,7 @@
  [string]$esUrl = "http://localhost:9200/",   [string]$queueStatsUrl = "http://localhost:56785/stats.json",   [string]$iisSiteName = "", - [switch]$noRestart, + [switch]$tryAutoRestart,   [string]$reenqueuePath = ".\reenqueue_2.9_tasks.ps1"   )   @@ -303,7 +303,6 @@
      -$tryAutoRestart = !($noRestart) # Needed a negative name for the parameter since the default is true. Sanity rename here.  $kssNeedsRestart = $false  $kqsNeedsRestart = $false  $iisNeedsRestart = $false