Article ID: 1148 - Last Modified: September 10, 2014
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 Unix/Linux and Windows operating systems is provided in chapter 10 of the License Administration Guide, which you can obtain by contacting Technical Support.
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
$SCHRODINGER directory. 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 (
/usr/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
$SCHRODINGER/licadmin SERVERUP -l path-to-logfile
# 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
Type the words or phrases on which you would like to search, or click here to view a list of all
Knowledge Base articles