.. _LMI-Service: LMI_Service ----------- Class reference =============== Subclass of :ref:`CIM_Service ` Class representing Linux Service Key properties ^^^^^^^^^^^^^^ | :ref:`Name ` | :ref:`SystemName ` | :ref:`SystemCreationClassName ` | :ref:`CreationClassName ` Local properties ^^^^^^^^^^^^^^^^ *None* Local methods ^^^^^^^^^^^^^ .. _LMI-Service-ReloadOrRestartService: ``uint32`` **ReloadOrRestartService** () **Parameters** *None* .. _LMI-Service-ReloadService: ``uint32`` **ReloadService** () **Parameters** *None* .. _LMI-Service-StopService: ``uint32`` **StopService** () The StopService method places the Service in the stopped state. Note that the function of this method overlaps with the RequestedState property. RequestedState was added to the model to maintain a record (such as a persisted value) of the last state request. Invoking the StopService method should set the RequestedState property appropriately. The method returns an integer value of 0 if the Service was successfully stopped, 1 if the request is not supported, and any other number to indicate an error. In a subclass, the set of possible return codes could be specified using a ValueMap qualifier on the method. The strings to which the ValueMap contents are translated can also be specified in the subclass as a Values array qualifier. Note: The semantics of this method overlap with the RequestStateChange method that is inherited from EnabledLogicalElement. This method is maintained because it has been widely implemented, and its simple "stop" semantics are convenient to use. **Parameters** *None* .. _LMI-Service-TurnServiceOn: ``uint32`` **TurnServiceOn** () **Parameters** *None* .. _LMI-Service-TurnServiceOff: ``uint32`` **TurnServiceOff** () **Parameters** *None* .. _LMI-Service-TryRestartService: ``uint32`` **TryRestartService** () **Parameters** *None* .. _LMI-Service-ReloadOrTryRestartService: ``uint32`` **ReloadOrTryRestartService** () **Parameters** *None* .. _LMI-Service-StartService: ``uint32`` **StartService** () The StartService method places the Service in the started state. Note that the function of this method overlaps with the RequestedState property. RequestedState was added to the model to maintain a record (such as a persisted value) of the last state request. Invoking the StartService method should set the RequestedState property appropriately. The method returns an integer value of 0 if the Service was successfully started, 1 if the request is not supported, and any other number to indicate an error. In a subclass, the set of possible return codes could be specified using a ValueMap qualifier on the method. The strings to which the ValueMap contents are translated can also be specified in the subclass as a Values array qualifier. Note: The semantics of this method overlap with the RequestStateChange method that is inherited from EnabledLogicalElement. This method is maintained because it has been widely implemented, and its simple "start" semantics are convenient to use. **Parameters** *None* .. _LMI-Service-CondRestartService: ``uint32`` **CondRestartService** () **Parameters** *None* .. _LMI-Service-RestartService: ``uint32`` **RestartService** () **Parameters** *None* Inherited properties ^^^^^^^^^^^^^^^^^^^^ | ``uint16`` :ref:`RequestedState ` | ``uint16`` :ref:`HealthState ` | ``string`` :ref:`SystemCreationClassName ` | ``string`` :ref:`InstanceID ` | ``uint16`` :ref:`CommunicationStatus ` | ``string`` :ref:`SystemName ` | ``string[]`` :ref:`StatusDescriptions ` | ``string`` :ref:`Status ` | ``string`` :ref:`ElementName ` | ``string`` :ref:`Description ` | ``uint16`` :ref:`TransitioningToState ` | ``boolean`` :ref:`Started ` | ``datetime`` :ref:`TimeOfLastStateChange ` | ``uint16`` :ref:`PrimaryStatus ` | ``uint16`` :ref:`DetailedStatus ` | ``string`` :ref:`Name ` | ``datetime`` :ref:`InstallDate ` | ``uint16`` :ref:`EnabledDefault ` | ``uint16`` :ref:`EnabledState ` | ``string`` :ref:`Caption ` | ``string`` :ref:`StartMode ` | ``uint16[]`` :ref:`AvailableRequestedStates ` | ``uint64`` :ref:`Generation ` | ``string`` :ref:`OtherEnabledState ` | ``uint16[]`` :ref:`OperationalStatus ` | ``uint16`` :ref:`OperatingStatus ` | ``string`` :ref:`PrimaryOwnerContact ` | ``string`` :ref:`CreationClassName ` | ``string`` :ref:`PrimaryOwnerName ` Inherited methods ^^^^^^^^^^^^^^^^^ | :ref:`ChangeAffectedElementsAssignedSequence ` | :ref:`RequestStateChange `