This command restart all the process in a watcher or all watchers. This funtion simply stop a watcher then restart it.
{
"command": "restart",
"properties": {
"name": "<name>",
"waiting": False
}
}
The response return the status “ok”.
If the property name is present, then the reload will be applied to the watcher.
If waiting is False (default), the call will return immediately after calling stop_signal on each process.
If waiting is True, the call will return only when the restart process is completely ended. Because of the graceful_timeout option, it can take some time.