HP Micro Focus Object COBOL/UX Release Notes for Version B.12.35
Chapter 3 39
License Management with FLEXlm and COBOL
Installing and Setting Up the FLEXlm License Manager
The debug log file output can be switched after the daemons are
running. The technique to do this involves piping the stdout of
lmgrd to a shell script that appends to the file for each line. To do
this, instead of the normal start-up of $ lmgrd > filename.log,
start lmgrd this way:
$ lmgrd | sh -c ‘while read line; do echo “$line” >> \
filename.log ; done’
With this start-up method, the output file, filename.log, can be
renamed and a new log file will be created. You could even make
filename.log a symbolic link and change the value of the link to switch
the log file.
To run this in the background put the following lines in a startup
script, called startflex:
#!/bin/ksh
lmgrd | sh -c ‘while read line; do echo "$line" >> $1 ; done’
Then start lmgrd by running this script with the following command
line:
$ nohup startflex filename.log &
5. Configure your server boot process to start lmgrd for this new
license.dat file when the server system is booted. This process is
described in the following section, “Automating Subsequent FLEXlm
License Manager Start-ups” on page 39.
6. Once the new license.dat and option files are ready, you can start
the lmgrd daemon and specify (or default to) the new license.dat
file. This process is described in section “Starting lmgrd (License
Manager Daemon)” on page 40.
Automating Subsequent FLEXlm License
Manager Start-ups
You can automate the FLEXlm start-up so that lmgrd is started
automatically each time the license server machine reboots. However, it
is recommended that lmgrd not be run as root. Therefore, here is
sample sequence of script code that can be added to the appropriate
HP-UX rc file: