Knowledge Base

Article ID: 1148 - Last Modified:

How can I have the license server daemon (lmgrd) start automatically when the machine is rebooted?

An example of starting the license server daemon (lmgrd) automatically for both the Linux and Windows operating systems is provided in chapter 10 of the License Administration Guide.

The Unix/Linux example given in Chapter 10 uses the su command to change to another user, so that lmgrd is not running as root. The lmgrd log files and lock files are written by the user who starts lmgrd, and some of these files may be written to the installation directory ($SCHRODINGER). Even when specifying an alternate log file (by using the -l switch with the license server startup command):

$SCHRODINGER/licadmin SERVERUP -l path-to-logfile/lmgrd.log

a default log file named lmgrd.log is still created in the $SCHRODINGER directory. This means that the $SCHRODINGER directory must be writable by the user who starts lmgrd. It may also be necessary to remove, rename or change permissions on the log and lock files that were created if lmgrd was initially started as root, since these root-owned files will probably not be writable by a regular user account. The lock file (/var/tmp/lockSCHROD) is normally removed automatically when the SCHROD daemon is shut down, but if SCHROD terminates abnormally it may be necessary to remove the lock file manually.

The following commands gives some possible ways to modify the Unix/Linux example in the Flexera documentation:

# setting SCHRODINGER at the start allows $SCHRODINGER to be used
# in subsequent lines, rather than having to continually specify the full path
path-to-logfile/`date +%m_%d_%Y_%H_%M_%S`.lmgrd.log
# The `date +%m_%d_%Y_%H_%M_%S` will prepend the current date and time to the log file name.
# Doing this will help prevent subsequent reboots from overwriting the previous lmgrd log file

Back to Search Results

Was this information helpful?

What can we do to improve this information?

To ask a question or get help, please submit a support ticket or email us at
Knowledge Base Search

Type the words or phrases on which you would like to search, or click here to view a list of all
Knowledge Base articles