LMI_Service¶
Subclass of CIM_Service
Class representing Linux Service
Key properties¶
Local properties¶
None
Local methods¶
uint32
ReloadOrRestartService ()
Reload the service if it supports it. If not, restart the service instead. If the service is not running yet, it will be started.
Parameters
- None
uint32
ReloadService ()
Reload configuration of the service.
Parameters
- None
uint32
StopService ()
Stop (deactivate) the service.
Parameters
- None
uint32
TurnServiceOn ()
Enable the service persistently. The service will start on the next boot of the system. Note that this method does not have the effect of also starting the service being enabled. If this is desired, a separate StartService method call must be invoked for the service.
Parameters
- None
uint32
TurnServiceOff ()
Disable the service. The service will not start on the next boot of the system. Note that this method does not implicitly stop the service that is being disabled. If this is desired, an additional StopService method call command should be executed afterwards.
Parameters
- None
uint32
TryRestartService ()
Restart the service if the service is running. This does nothing if the service is not running.
Parameters
- None
uint32
ReloadOrTryRestartService ()
Reload the service if it supports it. If not, restart the service instead. This does nothing if the service is not running.
Parameters
- None
uint32
StartService ()
Start (activate) the service.
Parameters
- None
uint32
CondRestartService ()
Equivalent to the TryRestartService() method.
Parameters
- None
uint32
RestartService ()
Restart the service. If the service is not running yet, it will be started.
Parameters
None
Inherited properties¶
uint16
RequestedStateuint16
HealthStatestring[]
StatusDescriptionsstring
InstanceIDuint16
CommunicationStatusstring
SystemNamestring
LoSIDstring
Statusstring
ElementNamestring
Descriptionuint16
TransitioningToStateboolean
Starteddatetime
TimeOfLastStateChangeuint16
PrimaryStatusuint16
DetailedStatusstring
Namedatetime
InstallDateuint16
EnabledDefaultuint16
EnabledStatestring
LoSOrgIDstring
PrimaryOwnerContactstring
Captionstring
StartModeuint16[]
AvailableRequestedStatesuint64
Generationstring
OtherEnabledStateuint16[]
OperationalStatusuint16
OperatingStatusstring
SystemCreationClassNamestring
CreationClassNamestring
PrimaryOwnerName