Apache 서버 다시 시작
Microsoft.ApacheHTTPServer.RestartApache.Task (Task)
Apache HTTP 서버 서비스 다시 시작
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.ApacheHTTPServer.RestartApache.Task" Target="Microsoft.ApacheHTTPServer.ManagedServer.Unix" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<ProbeAction ID="ServiceTask" TypeID="Unix!Microsoft.Unix.WSMan.Invoke.VarPriv.ProbeAction">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<UserName>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/Password$</Password>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx</Uri>
<Selector/>
<InvokeAction>ExecuteCommand</InvokeAction>
<Input><p:ExecuteCommand_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem"><p:command>service $Target/Property[Type="Microsoft.ApacheHTTPServer.Installation"]/ServiceName$ restart </p:command><p:timeout>60</p:timeout></p:ExecuteCommand_INPUT></Input>
<TimeOutInMS>6000</TimeOutInMS>
</ProbeAction>
</Task>