Starting the License Manager
You can start the license manager manually or it can run automatically at boot.
starting the license manager manually
To start the license manager manually, make the license/$arch directory the current directory and enter
./lmgrd -c ../license.dat -l /var/tmp/comsol56.log
The server is now ready to distribute licenses over the network. It writes any debug information to the log file /var/tmp/comsol56.log.
starting the license manager automatically at boot
In order for the license manager to start automatically at boot, you need to add Bourne shell commands to the appropriate boot script. You must be a superuser (root) to edit boot scripts. In some cases, however, the COMSOL Installer automatically installs and configures the license manager.
systemd-Based Systems
For Linux distributions that use systemd, use the lmcomsol.service file, located in the comsol56/license/glnxa64 directory, to start the license manager. To use lmcomsol.service, do the following steps:
1
Update the path to lmgrd, license.dat, and comsol56.log in case you have different locations for these files.
2
Optionally, replace username with an actual username. Preferably do not use root; instead, use the account used to install COMSOL or another account with access to both the lmgrd executable and the log file location above.
3
Create a /usr/tmp directory if it does not exist and set its permissions to 1777 with the chmod 1777 /usr/tmp command.
4
If you already have the license manager installed using systemd, stop the previous version of it by typing systemctl stop lmcomsol.
5
Copy the lmcomsol.service file to /usr/lib/systemd/system/ and run the systemctl enable lmcomsol and systemctl start lmcomsol commands to activate the license manager.