Starting and Stopping Tomcat

This article explains how to start and stop Tomcat on the Jamf Pro host server by using any of the following methods:

  • Jamf Pro Server Tools GUI

  • Jamf Pro Server Tools Command-Line Interface (CLI)

  • System service command line

General Requirements

Administrative access to the Jamf Pro host server

Restarting Tomcat Using the Jamf Pro Server Tools GUI

Requirements

You must run the Jamf Pro Server Tools GUI as an administrator to make changes to the Tomcat Settings.

  1. Open the Jamf Pro Server Tools GUI by performing the following steps:
    1. Open a command terminal and enter the following:
      java -jar
    2. Drag the Jamf Pro Server Tools .jar file into the window to add the path to the .jar file to the java -jar command.
    3. Press Enter.
  2. Click Tomcat Settings.
  3. Click Start Tomcat or Stop Tomcat.

Restarting Tomcat Using the Jamf Pro Server Tools CLI

You can start, stop, and restart Jamf Pro's Tomcat server by executing the following commands from a terminal:
jamf-pro server start
jamf-pro server stop
jamf-pro server restart

Restarting Tomcat Using the System Service Command Line

Change the version of Tomcat provided in the instructions to match the version running on the host server.

Restarting Tomcat on Linux

Jamf Pro 10.13.0 or Later

If you installed Jamf Pro using the installers, execute the following command:
sudo service jamf.tomcat8 restart

Manual Jamf Pro Installations on Linux

If you installed Jamf Pro manually, the Tomcat service name (e.g., "tomcat8") may differ depending on how you created it. You will need to execute a command using the appropriate service name for your environment. For example:
sudo /etc/init.d/tomcat8 restart
or
sudo service tomcat8 restart

Restarting Tomcat on Windows

Open Command Prompt and execute the following commands:
Net stop Tomcat8
Net start Tomcat8 

Restarting Tomcat on Mac

  1. Open Terminal on the Jamf Pro host server.

  2. To unload the Tomcat web application process:
    sudo launchctl unload /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist
  3. To reload and launch the Tomcat web application process:
    sudo launchctl load /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist