5 process.restart
therealkrispet edited this page 2019-11-18 11:12:46 +01:00

Request

  • Description: Instructs the supervisor daemon to restart a registered process.
  • Subscribers: ProcessHandler
{
    "key": "process.restart"
}
Parameter Type Required Description
name string ✔️ Name of the process.

Example:

{
    "key": "process.restart",
    "name": "webservice"
}

Response

  • Description: Raises an event that contains an error field if the process exited with an error code, otherwise it's just the same as the original request.
  • Subscribers: DeployHandler
{
    "key": "process.restart"
}
Parameter Type Required Description
name string ✔️ Name of the process.
error string Error message from the supervisor daemon.

Example:

{
    "key": "process.restart",
    "name": "webservice"
}