xdmp:restart( $hostIDs as xs:unsignedLong*, $reason as xs:string ) as empty-sequence()
Restart servers on hosts.
Parameters | |
---|---|
hostIDs | A sequence of host IDs, or empty sequence for the local host. |
reason | Prepositional phrase describing the reason to restart. |
http://marklogic.com/xdmp/privileges/xdmp-restart
xdmp:restart
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
last-startup
from
xdmp:host-status
before and after the restart.
xdmp:restart((), "to reload server.xml")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.