RestartServer¶
RestartServer
Description: Restarts the trading server service (systemctl restart sttrader).
The main use is to apply a restore scheduled with
ScheduleStartupRestore: the restore runs while the
server starts. Every client and manager connection is closed and trading is
unavailable until the server is back.
Access Control¶
SESSION_ADMIN,SESSION_MANAGER, scopeaccess_backoffice, permissionrun_backup
The command is available over TCP only. Every call is written to the Journal.
Request Parameters¶
No parameters required.
Request Example¶
{
"command": "RestartServer",
"extID": "1",
"data": {}
}
Response Example¶
{}
Rules¶
- The restart is requested immediately; there is no confirmation step on the server.
- The server process is stopped by the restart, so the connection usually closes before the response arrives. Treat a closed connection after this command as the expected result and reconnect when the server is back.
- The command does not report a failed restart: if the service manager cannot restart the service, the failure is only written to the server log.
- The command does not require a scheduled restore. Without one, the server just restarts with its current stores.
Errors¶
| Error | HTTP Code | Description |
|---|---|---|
PERMISSION_DENIED_ACCESS |
401 |
No session, or the session type is not SESSION_ADMIN / SESSION_MANAGER |
RET_NOT_ENOUGH_RIGHTS |
403 |
The manager is disabled, has no access_backoffice scope or no run_backup permission |