Home »
Public Forums »
archive »
Running FlexLM on OS X
Running FlexLM on OS X [message #33097] |
Wed, 04 December 2002 05:55 |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
This will likely be of interest only to those running OS X.
We have been working to get our IDL licensing running on our OS X
machines. The FlexLM license manager runs fine if you start it
manually, the trick has been to get it to start up at boot time under
the (peculiar) OS X boot sequence. The documentation from IDL and
Globetrotter (the FlexLM folks) is ... ah ... sparse, and neither has
startup scripts for OS X that I can find.
After some poking around, I found the following fairly useful how-to
page at Apple:
http://developer.apple.com/techpubs/macosx/Darwin/howto/syst em_starter_ho
wto/system_starter_howto.html
The following seems to be working for us. No guarantees! Please let me
know if you find problems or better ways to do it.
In /Library/StartupItems create a directory "FlexLM". In this directory
are two files, the script to actually run lmgrd (must also be named
"FlexLM") and a property list (StartupParameters.plist).
Ken Bowman
Below is the FlexLM file. The file belongs to "adminuser". Lmgrd
should not be run as root for security reasons. In the file, change
"adminuser" to the name of the administrative user for your machine.
The test for whether lmgrd is already running is not elegant, but it
works. This script assumes that the license file is in the default
location.
#!/bin/sh
##
# FlexLM license manager daemon
##
. /etc/rc.common
StartService ()
{
if [ `/usr/local/rsi/idl_5.6/bin/lmstat | grep -c UP` = "0" ]; then
ConsoleMessage "Starting FlexLM license manager"
/usr/bin/su adminuser -c '/usr/local/rsi/idl_5.6/bin/lmgrd >>
/dev/console'
else
ConsoleMessage "FlexLM license manager already running"
fi
}
StopService ()
{
if [ `/usr/local/rsi/idl_5.6/bin/lmstat | grep -c UP` != "0" ]; then
ConsoleMessage "Stopping FlexLM license manager"
/usr/local/rsi/idl_5.6/bin/lmdown -q
else
ConsoleMessage "FlexLM license manager already stopped"
fi
}
RestartService () { StopService; /bin/sleep 5; StartService; }
RunService "$1"
Below is the StartupParameters.plist file. If anyone has a better idea
what these parameters should be, please let us know!
{
Description = "FlexLM License Manager";
Provides = ("lmgrd");
Requires = ("Network");
Uses = ("");
OrderPreference = "Late";
}
|
|
|
Current Time: Thu Oct 09 21:56:46 PDT 2025
Total time taken to generate the page: 1.03813 seconds