Server side script installation instructions
This page describes scripts installation procedure on a server machine.
Those scripts are provided for the sole purpose of starting rmiregistry
and keeping it running. You do not have to use those scripts. In
fact you may choose to start rmiregistry manually everytime you
wish to use fiswidgets in client/server mode. It is up to a system administrator
to decide what should or should not be used.
-
Download and install appropriate scripts
You will need to download and install the following script files for
easier client/server configuration.
-
fisrmi.linux or fisrmi.unix
- Those scripts launch rmiregistry at boot time
-
fisrmistart - This script is called
by fisrmi. It launches rmiregistry if it is not already running.
You can run this script with username parameter to run it under different
username. Copy this script into /usr/local/bin directory.
-
fiscronjob.txt - This
is a crontab file for scheduling rmiregistry check with cron
daemon.
-
Starting rmiregistry on boot
First copy fisrmistart scripts to /usr/local/bin or some other
system visible directory. Then copy fisrmi.linux or fisrmi.unix
(depending on your machine architecture) to /etc/rc.d/init.d/ directory
and rename it to fisrmi. To start fisrmi on system startup
you should create two symbolic links to those scripts from your runlevel
init directory. fisrmi script uses fisrmistart to start rmiregistry
under a different username (non-root). For security reasons it is
recommended to run rmiregistry as non-root. Below are instructions
how to create those links on Linux and other Unicies.
-
Installation instructions for Linux
# cp fisrmi.linux /etc/rc.d/init.d/fisrmi
# cd /etc/rc.d/rc5.d/
# ln -s ../init.d/fisrmi S99fisrmi
# ln -s ../init.d/fisrmi K99fisrmi
-
Installation instructions for SGI Irix
# cp fisrmi.unix /etc/init.d/fisrmi
# cd /etc/rc2.d/
# ln -s ../init.d/fisrmi S99fisrmi
# ln -s ../init.d/fisrmi K99fisrmi
-
Installation instructions for Sun Solaris
# cp fisrmi.unix /etc/init.d/fisrmi
# cd /etc/rc3.d/
# ln -s ../init.d/fisrmi S99fisrmi
# ln -s ../init.d/fisrmi K99fisrmi
-
Starting rmiregistry manually
All you have to do is type fisrmistart& as a regular user
(not a superuser).
-
Checking/Restarting rmiregistry
Some system administrators may choose to periodically check if rmiregistry
is running and restart it, if it is not running. For that purpose we have
provided a cron job file fiscronjob.txt. Cron is a schedule daemon
that is installed on most Unix platforms. To schedule a job with cron
yousimply
need to type as a regular user:
> crontab fiscronjob.txt
Before you do this, you should make sure that the fiscronjob.txt file
points to the correct location of
fisrmistart utility.