You will need to create a launchd property list file called com.lightmap.rlm.plist and put it in the correct directory (/Library/LaunchDaemons).
Here is an example file. Using TextEdit (or vi), change the contents to match the location of your rlm executable.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd > <plist version="1.0">
<dict>
<key>Label</key>
<string>com.lightmap.rlm</string>
<key>ProgramArguments</key>
<array>
<string>/Users/Fred/Lightmap/RLM/rlm</string>
<string>-c</string>
<string>/Users/Fred/Lightmap/RLM/HDRLightStudioV4_License.lic</string>
<string>-dlog</string>
<string>/Users/Fred/Lightmap/RLM/lightmap.log</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Make sure the plist file has the correct name and does not have a .txt file extension (that may have been added using TextEdit).
Move the plist file to /Library/LaunchDaemons
Change the owner to root using this command in a terminal:
sudo chown root /Library/LaunchDaemons/com.lightmap.rlm.plist
Run this command from the terminal to check it loads the RLM license server daemon correctly.
sudo launchctl load -w /Library/LaunchDaemons/com.lightmap.rlm.plist
Check that a log file has been created. Go to /Users/Fred/Lightmap/RLM and look for a lightmap.log file. If it is there, everything is working. If not, check the contents of the plist files for any spelling errors. As a final check, reboot your computer and then verify the license server is running with the following command:
./rlmutil rlmstat -a