Udev 重新启动
Microsoft.Linux.RHEL.7.Process.Udev.Restart (Recovery)
Element properties:
Member Modules:
Source Code:
<Recovery ID="Microsoft.Linux.RHEL.7.Process.Udev.Restart" Accessibility="Public" Enabled="false" Target="Microsoft.Linux.RHEL.7.OperatingSystem" Monitor="Microsoft.Linux.RHEL.7.Process.Udev.Monitor" ExecuteOnDiagnostic="Microsoft.Linux.RHEL.7.Process.Udev.Diagnostic" Remotable="true" ResetMonitor="false" Timeout="300">
<Category>Maintenance</Category>
<WriteAction ID="StartProcess" TypeID="Unix!Microsoft.Unix.WSMan.Invoke.Privileged.WriteAction">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</TargetSystem>
<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>sh -c 'systemctl start systemd-udevd'</p:command><p:timeout>60</p:timeout></p:ExecuteCommand_INPUT></Input>
</WriteAction>
</Recovery>