TOMCAT41CTL(1)

NAME
tomcat41ctl - Jakarta Tomcat server control interface

SYNOPSIS
tomcat41ctl [start | restart | stop]

DESCRIPTION
The tomcat41ctl program provides an interface to the Jakarta Tomcat application server.

The program expects exactly one argument, either start, restart or stop. If more than one argument is given, then all arguments but the first are ignored.

start
    Start Jakarta Tomcat, if it is not already running.

restart
    Restart Jakarta Tomcat. If it is already running, then it will be stopped and then started right after that. Otherwise it will just be started up.

stop
    Stop Jakarta Tomcat, if it is actually running.

ERRORS
The following error conditions are detected. They will be checked in the specified order. In each case an error message is printed with the name of the control program prepended.

If no argument is passed, then a simple help message is printed and the program exists with error code 0.

If at least one argument is passed, but it is different from start, restart or stop then the help message is printed as well, and the program exits with error code 1.

The following errors conditions are defined:

Illegal program argument (error code 1)

PID file not found (error code 2)

PID file too large (error code 3)

PID file contains illegal character (error code 4)

Kill of process failed (error code 5)

Jakarta Tomcat is already running (error code 6)

Jakarta Tomcat is not running (error code 7)

Unable to chdir to the Jakarta Tomcat home directory (error code 8)

Unable to open the stdout log file (error code 9)

Unable to open the stderr log file (error code 10)

Unable to start Jakarta Tomcat (error code 11)

FILES

/var/run/tomcat41.pid
    The Jakarta Tomcat PID file that is used to store the process ID of the currently running process in. It is emptied as soon as the server is stopped and filled with the process ID when it is started. It should never be writable for anyone but www,

/usr/local/etc/rc.d/020.jakarta-tomcat41.sh
    A script that starts the tomcat41ctl program. It is used to start Jakarta Tomcat at startup time.

AUTHORS
Ernst de Haan <znerd@FreeBSD.org>