<inst-dir>
.
jre -help
If needed, you can retrieve V.1.1.7 of the Java Runtime Environment for your architecture into the installation directory: Solaris, HP-UX or Linux.
gunzip -c p2pp-appserver-2.1.1.tar.gz | tar xovf -
rm -f current-appserver
ln -s p2pp-appserver-2.1.1 current-appserver
cd p2pp-appserver-2.1.1
make
crontab(1)
man page for details):
15 0 * * * <inst-dir>/current-appserver/bin/housekeeping.sh >> <inst-dir>/logs/housekeeping.log 2>&1
0,15,30,45 * * * * <inst-dir>/current-appserver/bin/p2pp-appserver.sh -check >> <inst-dir>/logs/check-running.log 2>&1
The first line will run a housekeeping script script about
midnight every day - to rotate logfiles, restart the server,
etc.
The second line will check every fifteen minutes if the
server is actually running, and restart it if not.
This completes the installation process.
Note: P2PP Application Server V.2.1.1
is actually implemented as two concurrent processes - an RMI
registry listener and the application server process
itself. The processes can be controlled manually using the
p2pp-appserver.sh
script in the
<inst-dir>/p2pp-appserver-2.1.1/bin
directory.
The script's help message is reported below:
Usage: p2pp-appserver.sh [-v|-verbose] [-r|-restart] [-ck|-check] [-k|-kill] [-d|-debug] -r -restart kill and restart the servers -ck -check restart if not already running -k -kill kill the servers -d -debug just show what would be executed -v -verbose produce verbose outputNote that exactly one of the -r, -ck or -k options must be specified.