# Restart service This function restarts a service, or daemon, on a server. If the user possesses the Access Control List (ACL) then this function can act on the service. Endpoint: GET /restartservice Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `service` (string, required) The service to restart. For a list of possible values, read our Access Control List (ACL) documentation. Example: "exim" - `queue_task` (integer) Whether to queue this task. * — Queue. * — Do queue. This parameter affects the return. Enum: 0, 1 ## Response 200 fields (application/json): - `data` (object) - `data.output` (string) The function's raw output. If you call the parameter, this changes the return's output: * — Nothing. * — A string of raw output. Example: "Waiting for httpd to restart..............finished.\\n\\nhttpd (/usr/local/apache/bin/httpd -k start -DSSL) running as root with PID 21379\\nhttpd (/usr/local/apache/bin/httpd -k start -DSSL) running as root with PID 21385\\n\\nhttpd started ok\\n" - `data.service` (string) The restarted service. Example: "exim" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "restartservice" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1