<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.restart.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.restart</api:function-name><api:suggest>xdmp.restart</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>restart</api:suggest><api:function-link mode="xquery" fullname="xdmp:restart">/apidoc/8.0/xdmp:restart.xml</api:function-link><api:function mode="javascript" name="restart" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.restart"><api:summary>
  Restart servers on hosts.
</api:summary><api:params><api:param name="hostIDs" type="xs:unsignedLong*"><api:param-description>
    A sequence of host IDs, or empty sequence for the local host.
  </api:param-description><api:param-name>hostIDs</api:param-name><api:param-type>String[]</api:param-type></api:param><api:param name="reason" type="xs:string"><api:param-description>
    Prepositional phrase describing the reason to restart.
  </api:param-description><api:param-name>reason</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>null</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-restart</code></p>
</api:privilege><api:usage>
  The restart signal is sent asyncronously and
  is not a blocking operation, so code that runs after the
  <code xmlns="http://www.w3.org/1999/xhtml">xdmp:restart</code> call is not guaranteed to run after the host
  restarts.  If you need to verify that the host was restarted, you can
  compare the value of <code xmlns="http://www.w3.org/1999/xhtml">last-startup</code> from
  <code xmlns="http://www.w3.org/1999/xhtml">xdmp:host-status</code> before and after the restart.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.restart(null, "to reload server.xml");
</pre></api:example></api:function></api:function-page>