Skip to end of metadata
Go to start of metadata

About the Controller Start and Stop Scripts

The scripts to start and stop the Controller are located in the <Controller_Installation_Directory>/bin directory.

The startController script starts up both the database and the underlying Glassfish application server for the Controller. Alternatively, you can stop and start the database or application server individually. This makes it possible, for example, to turn off data collection (by shutting down just the app server, for instance) while performing database operations. For most cases, however, you can simply use the startController script to start the entire system at once. Similarly, the stopController scripts turn off both the Glassfish application server and the database.

(warning) To avoid the possibility of data corruption errors, be sure to stop the application server and database gracefully (that is, by using the stop scripts described on this page) before shutting off or rebooting the machine on which the Controller is running.

On Windows, the commands must be run in an elevated command prompt, which you can open by right-clicking on the Command Prompt icon in the Windows Start menu and choosing Run as administrator.

Start and Stop the Controller

To start the Controller

Open a command line console and execute the following command:

  • For Linux, run:

    <Controller_Installation_Directory>/bin/startController.sh
    
  • For Windows, run the following command in an elevated command prompt:

    <Controller_Installation_Directory>\bin\startController.bat
    

To stop the Controller

Open a command line console and execute the following command:

  • For Linux, run:

    <Controller_Installation_Directory>/bin/stopController.sh
    
  • For Windows, run the following command in an elevated command prompt:

    <Controller_Installation_Directory>\bin\stopController.bat
    

Start and Stop the Controller App Server

To start the Controller app server

Open a command line console and execute the following command:

  • For Linux, run:

    <Controller_Installation_Directory>/bin/controller.sh start-appserver
    
  • For Windows, run the following command in an elevated command prompt:

    <Controller_Installation_Directory>\bin\controller.bat start-appserver
    

To stop the Controller app server

Open a command line console and execute the following command:

  • For Linux, run:

    <Controller_Installation_Directory>/bin/controller.sh stop-appserver
    
  • For Windows, run the following command in an elevated command prompt:

    <Controller_Installation_Directory>\bin\controller.bat stop-appserver
    

Start and Stop the Controller Database

To start the Controller database

Open a command line console and execute the following command:

  • For Linux, run:

    <Controller_Installation_Directory>/bin/controller.sh start-db
    
  • For Windows, run the following command in an elevated command prompt:

    <Controller_Installation_Directory>\bin\controller.bat start-db
    

To stop the Controller database

Open a command line console and execute the following command:

  • For Linux, run:

    <Controller_Installation_Directory>/bin/controller.sh stop-db
    
  • For Windows, run the following command in an elevated command prompt:

    <Controller_Installation_Directory>\bin\controller.bat stop-db
    

Learn More