Loading TOC...

xdmp.restart

xdmp.restart(
   $hostIDs as String[],
   $reason as String
) as null

Summary

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.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-restart

Usage Notes

The restart signal is sent asyncronously and is not a blocking operation, so code that runs after the 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.

Example

xdmp.restart(null, "to reload server.xml");

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy