Starting up, shutting down, and restarting your instance
This page will show you how to start up, shutdown, and restart Martini. Martini includes a variety of ways to perform these operations:
Using the CLI script
One of the most common ways to start and stop Martini is by executing the provided CLI script. You can also pass arguments to the following scripts to specify how you want to start Martini.
- For Windows:
- For Unix or macOS:
|run||Default. Starts Martini.|
|start||Starts Martini without outputting the logs to the terminal.|
|debug||Starts Martini with the underlying JDK in debug mode.|
|stop||Shuts down Martini.|
$ <martini-home>/bin/toro-martini run
Using the CLI tool
restart commands are also available in the CLI tool. Take note that in order to use
these commands, the CLI tool needs to be connected to a Martini instance.
|shutdown||Shuts down Martini|
--now argument is required for both commands.
Using the Martini Runtime Admin interface
The Martini Runtime Admin interface also provides a way to shutdown or restart a Martini instance. To do this, click the power icon in the top right of the interface (beside the user icon) and choose Restart or Shutdown.
Using Martini Desktop
Shutdown and restart operations are provided in Martini Desktop. To shutdown or restart Martini via Martini Desktop follow these steps:
- Right click the Martini instance in Navigator view; this will show the context menu with the actions applicable for the instance.
Select Shut Down or Restart.
Using RESTful web services
Martini also provides REST endpoints for shutting down and restarting.
PUT request to the following endpoints to shutdown or restart Martini.