Starting the License Manager
Either start the license manager manually or let it run automatically at startup.
starting the license manager manually
To start the license manager manually:
1
Change directory to the license/macarm64 or license/maci64 directory:
cd /Applications/COMSOL64/Multiphysics/license/macarm64
or
cd /Applications/COMSOL64/Multiphysics/license/maci64
depending on your CPU architecture.
2
./lmgrd -c ../license.dat -l /var/tmp/comsol64.log
The server is now ready to distribute licenses over the network. It writes any debug information to the log file /var/tmp/comsol64.log.
starting the license manager automatically at startup
To configure the license manager to run automatically at startup:
1
Copy the template file com.comsol.lmcomsol.plist to /Library/LaunchDaemons:
sudo cp /Applications/COMSOL64/Multiphysics/license/macarm64/com.comsol.lmcomsol.plist /Library/LaunchDaemons/
or
sudo cp /Applications/COMSOL64/Multiphysics/license/maci64/com.comsol.lmcomsol.plist /Library/LaunchDaemons/
depending on your CPU architecture.
Typically, the template file must be edited: the lmgrd and license.dat paths should be updated, and a user that is not root should be specified for running the service.
2
Open the file /Library/LaunchDaemons/com.comsol.lmcomsol.plist in a text editor, for example, TextEdit, and make the necessary edits.
3
sudo chmod 600 /Library/LaunchDaemons/com.comsol.lmcomsol.plist
4
sudo launchctl load -w /Library/LaunchDaemons/com.comsol.lmcomsol.plist
To disable automatic startup for the license manager and remove the license manager daemon:
1
sudo launchctl unload -w /Library/LaunchDaemons/com.comsol.lmcomsol.plist
2
sudo rm -rf /Library/LaunchDaemons/com.comsol.lmcomsol.plist
3
rm /var/tmp/comsol64.log