Skip to main content

Set termination flag

POST 

/system/services/active/:system_services_id/terminate

JSON-RPC

system.services.active.mark_terminate

The method sets terminate flag on the service. It will be processed by the "Tasks Scheduler" system service within the next run (typically within 1 minute). As a result SIGTERM signal will be sent to the process.

note

In the abnormal situation, where the process hanged and became a zombie, the signal may be not processed. In this case service may be terminated only via shell.

Request​

Path Parameters

    system_services_id stringrequired

    System service ID.

Bodyrequired

    nodes_idstring | nullnullable

    Cluster node ID to which operation should be applied. If not given, all nodes will be processed.

    Default value: null

Responses​

Number of the affected rows.

Schema
    integerinteger

Authorization: X-Api-Key

name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access

Request Collapse all
Auth
Parameters
— pathrequired
Body required
{}