Recovery for TFSJobAgent

TeamFoundationServer2010.RecoveryForTFSJobAgent (Recovery)

Recovery for the TFSJobAgent Service. It attempts to restart the service.

Element properties:

TargetTeamFoundationServer2010.TFSApplicationTier
MonitorTeamFoundationServer2010.MonitorTFSJobAgent
Reset MonitorFalse
RemotableTrue
Timeout300
CategoryCustom
Enabledtrue
AccessibilityPublic

Member Modules:

ID Module Type TypeId RunAs 
RecoveryForTFSJobAgentByRestarting WriteAction Microsoft.Windows.ServiceControlManager.StartService Default

Source Code:

<Recovery ID="TeamFoundationServer2010.RecoveryForTFSJobAgent" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2010.TFSApplicationTier" Monitor="TeamFoundationServer2010.MonitorTFSJobAgent" ResetMonitor="false" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Custom</Category>
<WriteAction ID="RecoveryForTFSJobAgentByRestarting" TypeID="Windows!Microsoft.Windows.ServiceControlManager.StartService">
<ComputerName>ComputerName1$Target/Property[Type="TeamFoundationServer2010.TFSApplicationTier"]/TFSATComputerName$</ComputerName>
<ServiceName>TFSJobAgent</ServiceName>
</WriteAction>
</Recovery>