LMI_Service¶
Class reference¶
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