Restart an app or agent
restart_serviceRestart an app's or agent's running processes, or only those of one process type. Each process stops and starts again, so requests in flight are dropped; a repeat restarts again. Restarting removes nothing. Use get_service to see when the processes are up. Websites run no process and are refused. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind you mean. Omit to restart whatever the name holds; give it to have a name holding another kind refused. | |
| name | Yes | Required. The app's or agent's name. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. | |
| process_type | No | An app's Procfile process type, such as web. Omit to restart every type. An agent has none. |