Troubleshooting
Problem
This technote explains how to automatically start the lmgrd and ddtsd services in IBM® Rational® ClearDDTS® upon a reboot.
Resolving The Problem
There are two daemons associated with DDTS's processing and if you reboot your UNIX® system you should make provisions to restart them automatically.
The deamons are "lmgrd" which is the FlexLM license manager daemon and "ddtsd" which is DDTS's main process-dispatching daemon.
To start these files automatically after a UNIX reboot, you can exploit facilities of your UNIX system to run startup files at reboot time. These files vary from UNIX architecture to architecture; consult your system's documentation for details (on Solaris, do a 'man init.d').
For example, on Solaris you could create a file 'DDTS' in directory
/etc/init.d/ consisting of:
#!/bin/sh
# /etc/init.d/DDTS - Start up the ClearDDTS license and ddtsd daemons
# First, get the DDTS home directory (this bit copied from ddtsclean)...
DDTSHOME=`/bin/echo 'echo ~ddts' | /bin/csh -sf`
if test $? != 0; then
echo "ERROR: Can't start DDTS daemons; cannot locate home directory..."
exit 1
fi
# Start the license manager...
if [ -f $DDTSHOME/bin/lmgrd ]; then
echo "Starting FlexLM daemon for DDTS..."
su ddts -c "$DDTSHOME/bin/lmgrd -c $DDTSHOME/license.dat -l $DDTSHOME/licens
e.log"
fi
# Start the DDTS daemon...
if [ -f $DDTSHOME/bin/ddtsd ]; then
echo "Starting the DDTS ddtsd daemon..."
$DDTSHOME/bin/ddtsd 2>&1
fi
Then, create a symbolic link to this file in /etc/rc3.d:
cd /etc/rc3.d
ln -s /etc/init.d/DDTS S80DDTS
Then, upon reboot the system will run this script, which will make these
daemons available before any users can log on.
CAVEAT: According to GlobeTrotter Software (vendors of FlexLM), there
are some situations where the above procedure may not work. The following
text is exerpted from the FlexLM FAQ; if you have further questions or
concerns about this text or about FlexLM in general, please contact
Globetrotter Software:
For reasons unknown some /etc/rc (/etc/rc2.d, /sbin/rc2.d, etc.) files refuse to run lmgrd with the simple command listed above. There are 2 workarounds we know to work - either or both should fix the
problem:
- Use 'nohup su username -c `umask 022; lmgrd -c ...''.
Note: It is not recommended to run lmgrd as root; the su username is used to run
lmgrd as a non-privileged user. - Add 'sleep 2' after the lmgrd command.
Note: On RS-6000 systems, you have to use /etc/inittab to start the license
server. The reason is that AIX has not started TCP
networking when /etc/rc is run, and lmgrd requires TCP networking.
----------------------
Historical Number
6092
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21135722