Service command line reference¶
lmi service is a command for LMI metacommand, which allows to list and manage system services on a remote host with installed OpenLMI service provider.
service¶
System service management.
Usage:
lmi service list [(–enabled | –disabled)]
lmi service show <service>
lmi service start <service>
lmi service stop <service>
lmi service enable <service>
lmi service disable <service>
lmi service restart [–try] <service>
lmi service reload <service>
lmi service reload-or-restart [–try] <service>
Commands:
- list
- Prints a list of services. Only enabled services are printed at default.
- show
- Show detailed information about service.
- start
- Starts a service.
- stop
- Stops the service.
- restart
- Restarts the service.
- reload
- Ask the service to reload its configuration.
reload-or-restart
Reload the service if it supports it. If not, restart it instead.
Options:
- –enabled
- List only enabled services.
- –disabled
- List only disabled services.
- –try
- Whether to abandon the operation if the service is not running.