Installation guide

21
Chapter 7
Setting up Pramati Server as a Service
To start Server as a daemon, run the shell script pramatiserver in the <install_root>/
services/j2eeserver/ directory
.
$./pramatiserver start
Starting @Pramati J2EE Server V 4.1@...
The script pramatiserver can be run in the following modes. The table below describes each
mode:
The shell script internally looks for wrapper program in the bin directory and for
pramati_server_default.conf in the currently directory and starts the server. To stop the server
use the
stop option.
To know more about other parameters for this script, use the help command:
$ ./pramatiserver help
Usage: ./pramatiserver { console | start | stop | restart | dump }
Installing Java Wrapper
To set up Pramati Server so that it will shutdown cleanly and restarts in the correct order when the
system boots, create a symbolic link to the applications script within the
/etc/init.d directory.
Many applications simply copy their daemon script to this directory but Pramati Server scripts
\j2eeserver\pramati_ser
ver_default.conf
A configuration file used to launch the server with pre-defined startup
parameters like setting classpath, JVM options etc.
\j2eeserver\wrapper.log
A log file for the Java services wrapper. All communication between the
services wrapper classes and Pramati Server are logged here.
Table 5: Server Start Modes
Mode Description
console
When wrapper is started in console mode, the server will started as the child process of
console. You will not be able to exit from the console until the Server is stopped using
wrapper stop command. You will be able to see wrapper programs output on console in
this mode, and hence should be used to debug setup problems
start When wrapper is started in "start" mode the Server will be launched as a detached process.
When running as a detached process, you will immediately regain control of the console
used to launch the Wrapper. You will also be able to now close the console and the console
and the Wrapper will stay running.
In this mode the wrapper's output will be in wrapper.log located in bin/ dir. In both modes
Pramati Server's output will be redirected to stdOut.log in logs/ dir.
dump Irrespective of the mode server is started in you can request for a "Thread Dump" by adding
the dump attributes.
File Description