Background

It is within the security policy of SLAC to keep as little number of ports open as possible on its perfSONAR machines. Therefore a group of XML based services can be instructed to listen on one port only instead of using a separate port for each. Services and ports in original configuration:

Services and ports in modified configuration:

The steps to do so are described below:

Step 1. Create an init script

Browse to /etc/init.d/ and copy an existing script (say snmpMA.sh) to ps-universal.sh. That init script would be responsible for starting up a single instance of the daemon that handle all the services. Open the script and modify the TOOL_EXE to be something like:


TOOL_EXE="perl \-I /usr/local/perfSONAR-PS/perfSONAR_PS-PingER/lib \-I /usr/local/perfSONAR-PS/perfSONAR_PS-perfSONARBUOY/lib \-I /usr/local/perfSONAR-PS/perfSONAR_PS-SNMPMA/lib \-I /usr/local/perfSONAR-PS/perfSONAR_PS-LookupService/lib /usr/local/perfSONAR-PS/Shared/scripts/perfsonar-daemon.pl"

Also change TOOL_CONF and TOOL_LOGGER to tell the script where the conf files are placed:


TOOL_CONF=${CONF_PREFIX}/combined.conf

TOOL_LOGGER=${CONF_PREFIX}/combined_logger.conf

And change TOOL for message display purposes:


TOOL="Services"