If you want the RLM license server to automatically start everytime you restart or turn on your Mac, you need to create a launch daemon. Don’t worry, it’s not as scary as it sounds 🙂
First, you need create a launchd property list (.plist) for RLM. It will look something like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.solidangle.rlm</string> <key>ProgramArguments</key> <array> <string>/PATH/TO/RLM/rlm</string> <string>-c</string> <string>/PATH/TO/RLM/arnold.lic</string> <string>-dlog</string> <string>/PATH/TO/RLM/solidangle.dlog</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
This plist file basically tells the system to start rlm with the -c and -dlog flags, like this:
/Users/stblair/solidangle/RLM/rlm -c /Users/stblair/solidangle/RLM/rlm/arnold.lic -dlog /Users/stblair/solidangle/RLM/rlm/solidangle.dlog
The -c flag isn’t necessary if the license file is in the same folder as the RLM binary executable.
Here’s an example com.solidangle.rlm.plist. Download it, and use TextEdit to change the paths to match the RLM location on your computer, and then save the RLM plist file in /Library/LaunchDaemons/. Note that this download plist assumes that the license file is in the same folder, and therefore omits the -c flag.
sudo cp com.solidangle.rlm.plist /Library/LaunchDaemons
Note: The plist file needs to be owned by root, otherwise you won’t be able to load the plist. If necessary, you can change the owner like this:
sudo chown root /Library/LaunchDaemon/com.solidangle.rlm.plist
Finally, you need to load the plist:
sudo launchctl load -w /Library/LaunchDaemon/com.solidangle.rlm.plist
The license server will now automatically start, even after a restart or power down of the machine.
You can check the license server by opening a Web browser and going to localhost:5054.