Starting up, shutting down, and restarting your instance
This page will show you how to start up, shutdown, and restart Martini. We have provided a variety of ways to do these operations:
- Using the CLI script
- Using the CLI tool
- Using the Martini Runtime Admin UI
- Using Martini Desktop
- Using REST endpoints
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 in the terminal.|
|debug||Starts Martini in debug mode.|
$ <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 the application|
|restart||Restarts the application|
--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 page (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 we can do 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.