COMSOL Multiphysics® Installation Guide > License Manager Installation on Linux > Starting the License Manager

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/comsol52a.log
The server is now ready to distribute licenses over the network. It writes any debug information to the log file /var/tmp/comsol52a.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.
For Linux distributions that use systemd, use the lmcomsol.service file, located in the comsol52a/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 comsol.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
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.
For older Linux distributions, without systemd, the procedure for editing boot scripts on each supported Linux distribution appears in the following table:
In the comsol52a/multiphysics/license/glnxa64 directory, enter the commands
Edit /etc/init.d/comsol52alm, replacing dir with the full path to the glnxa64 directory, and replace username with an actual username.
Copy the file comsol52a/multiphysics/license/glnxa64/lm_comsol to /etc/init.d
Edit /etc/init.d/lm_comsol. Update the FP and MYUSER variables as indicated in the file. Use the utility update-rc.d to automatically update the system's init script links:
Copy the file comsol52a/multiphysics/license/glnxa64/rc.lm and paste it at the end of
Replace dir in the code fragment with the full path to the glnxa64 platform directory, and replace username with an actual username.