5 process.start
therealkrispet edited this page 2019-11-18 11:11:14 +01:00

Request

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

Example:

{
    "key": "process.start",
    "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: (none)
{
    "key": "process.start"
}
Parameter Type Required Description
name string ✔️ Name of of the process.
error string Error message from the supervisor daemon.

Example:

{
    "key": "process.start",
    "name": "webservice",
    "error": "SPAWN_ERROR: webservice..."
}