You need to stop and restart the license daemons
- After you modify
- The path to the license file
- The host name or port number in the license file
- The options file
- To start a new debug log file
You must stop the license daemons carefully to prevent loss of users' data.
Stopping the License Daemons
If you are not the owner of the daemon, you will need to be root or be listed in lmadmin group or group 0 in /etc/group or NIS or its equivalent to stop the daemons.
Ensure that you stop and restart the license manager during low activity time. Do not use the -9 option of the kill command.
Follow these steps to stop the daemons.
- Notify users that you are terminating the license daemons so that they can exit the products properly.
- Verify that no users are accessing FlexNet licenses.
cd install_dir /tools/bin
./lmstat -a -c license_file
- Terminate the licensing daemons.
./lmdown -c license_file
Note: You only need to execute lmdown on one node of a license fault tolerant system.
The lmdown utility shuts down ALL license daemons in the specified license file. If you do not specify a license file and you have multiple license files in your path,
lmdown shuts down ALL license daemons in all license files. The license daemons write their last messages to the debug log file, close the file, and exit. All licenses granted by those daemons return to the license pool. If an application is still running when you terminate the license daemons, the next time the client program tries to verify its license, the license will not be valid.
Only use your operating system's kill command if lmdown does not work. If you started lmgrd with lmgrd -2 -p -x lmdown, you cannot use lmdown to shut the daemons down.
- Verify that the license daemons are no longer running.
./lmstat -a -c license_file
Go to Starting the License Daemons
Starting the License Daemons
If you have multiple license servers, restart the license daemons on each license server that you have shut down.
To restart the license daemons, follow these steps.
- Verify that the daemons are not running.
cd install_dir /tools/bin
./lmstat -c license_file -a - If the license daemons are running, stop the daemons.
Ensure that you stop and restart the license manager during low activity time. Do not use the -9 option of the kill command.
- Start the license daemons.
- You must have write permission to the log file to start the license daemons.
- The license server must be started with the
-c <license_file>option. The license file specified usingLM_LICENSE_FILEor the default path "/usr/local/flexlm/licenses/license.dat" are not supported for starting the server. - If the /etc/rc.lic script starts the license daemons, type
/etc/ rc.lic - If you did not create the script to start the license daemons, type
nohup lmgrd -c license_file > /usr/tmp/license.log &
This command starts the license daemons using license_file , records the licensing activity in /usr/tmp/license.log, and runs in the background.
- Check the log file for error messages.
If you see the following message in the license log file,
/usr/tmp/license.log, another license daemon is probably running.
ERROR: date time (cdslmd) Retrying socket bind (address in use)
Depending on the settings on your machine, sometimes take as long as five minutes to close a port after you have shut down the daemons. Wait and try again.
- Verify that the license daemons are up and running.
./lmstat -a -c license_file
