Launching MathLM

Launching MathLM on Windows

Launching MathLM Manually

Once installed, MathLM starts running automatically by default each time the machine is rebooted. To start or stop MathLM manually, follow these instructions.

It is assumed here that MathLM is installed in the default location, C:\Program Files\Wolfram Research\MathLM.

To Start 
(RefLink[MathLM, paclet:ref/program/mathlm])
 under Windows:

To Stop 
(RefLink[MathLM, paclet:ref/program/mathlm])
 under Windows:

Starting MathLM Automatically

Under normal conditions, the installer will install MathLM as a service on the machine. This means MathLM will start automatically each time the machine is rebooted. You can manually change the settings that control whether MathLM starts when the machine is rebooted.

It is assumed here that MathLM is installed in the default location, C:\Program Files\Wolfram Research\MathLM.

To Start 
(RefLink[MathLM, paclet:ref/program/mathlm])
 Each Time a Windows Machine Is Rebooted:

If MathLM is already installed as a service but was previously disabled, you can enable it again using the following steps.

You can start or stop MathLM without rebooting the machine. The MathLM service will give no indication that it has started, but the operating system will report if it fails to start.

To Prevent 
(RefLink[MathLM, paclet:ref/program/mathlm])
 from Starting Each Time a Windows Machine Is Rebooted:

Launching MathLM on Linux and Mac

To start MathLM on Linux, you may need root privileges. To start MathLM on Mac, you must have administrative privileges.

You can start MathLM manually at any time using the command-line options listed in "Command-Line Options". However, it is typical to configure MathLM so it starts automatically when the system is rebooted.

Starting MathLM Automatically on Linux

To do this, create a new startup script containing the following lines, or add them to an existing system startup script.

if [ -f /usr/local/Wolfram/MathLM/mathlm ]; 
then /usr/local/Wolfram/MathLM/mathlm -logfile filename;
fi

Starting MathLM Automatically on Mac

To do this, you can write a startup item for MathLM. Startup items are programs (such as shell scripts) that are run during the last phase of booting a Mac system. They can be configured to perform tasks such as clearing away temporary files or starting system daemons.

To Create a Startup Item for 
(RefLink[MathLM, paclet:ref/program/mathlm])
:

#!/bin/sh
. /etc/rc.common
##
#  This script will start up the Mathematica License Manager, mathlm.
##
if [  "${MATHLM:=-YES-}" = "-YES-" ]; then
 ConsoleMessage "Starting the Mathematica License Manager"
 /usr/local/Wolfram/MathLM/mathlm 
else
 ConsoleMessage "The Mathematica License Manager was not started"
fi

chmod 755 MathLM

{
 Description = "Mathematica License Manager";
 Provides = ("MathLM");
 Requires = ("Core Services");
 OrderPreference = "None";
 Messages = {
	start = "Starting Mathematica License Manager";
	stop  = "Stopping Mathematica License Manager";
			};
}

chmod 644 StartupParameters.plist

MATHLM=-YES-

SystemStarter start MathLM

MathLM Command-Line Options

The following are command-line options for MathLM.

mathlm command-line options.

The following additional command-line option is accepted on Linux and Mac.

mathlm command-line options specific to Linux and Mac.

The following additional command-line options are accepted on Windows.

mathlm command-line options specific to Windows.

With -install, any arguments given are stored as a part of the service and used when starting MathLM automatically.

Possible values for lang in -language are English, French, German, and Japanese.

The four levels of verbosity in -loglevel are as follows.

-loglevel verbosity levels.

If -foreground is specified, the default verbosity level is set to 4.

If -logfile is used without -loglevel, the default logging verbosity is set to 3.

If -loglevel is used without specifying a level, the verbosity defaults to 4.

The default format for log messages is the W3C common logfile format. MathLM log files can be imported using the (RefLink[Import, paclet:ref/Import]) format "(StringTypeLink[ApacheLog, paclet:ref/format/ApacheLog])".