...
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
...
init
...
script
...
to
...
point
...
to
...
the
...
"combined.conf"
...
and
...
"combined_logger.conf"
...
files.
Code Block | ||||
---|---|---|---|---|
| =
| |||
}TOOL_CONF=${CONF_PREFIX}/combined.conf
TOOL_LOGGER=${CONF_PREFIX}/combined_logger.conf
|
...