status /
services
CLI REST-API
stop
stop [service]
The "stop" command is used to stop a service if it is not already running. Please note that this will
result in a complete stop on all interfaces, as the service process itself is terminated.
RESTAPI: The data can be passed in the body like this:
{
"parameters": {
"service": "https"
}
}
Name | Value | Description | Example |
---|
| service | | https |
See also:
/status/services: services
/status/services/start: start the service process if it is not already running
/status/services/status: check if the service is running
/status/services/restart: stop and start the service
REST-API Support:
This command is supported by the REST API:
Method: PUT
URL: /api/status/services/stop
Body:
{
"parameters": {
"service": [service]
}
}
Example using curl:
curl -X PUT /api/status/services/stop -d
"{
\"parameters\": {
\"service\": \"https\"
}
}"