Forum Discussion

larsn's avatar
larsn
Contributor
11 years ago

Tips on setting up license server on Mac

My searches didn't find much on doing this successfully but here are two things to get a floating license server to autostart on a Mac:

 

Install a plist file for the floating license server, so create a file like: 

/Library/LaunchDaemons/com.smartbear.FloatingLicense.plist

(choose a filename but it must be in /Library/Launchdaemons)

The contents should be something like:

 

<?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>StandardOutPath</key>
        <string>/Applications/FloatingLicenseServerSoapUI/ProtectionLS_4.6.2/logs/init.log</string>
        <key>StandardErrorPath</key>
        <string>/Applications/FloatingLicenseServerSoapUI/ProtectionLS_4.6.2/logs/init.log</string>
        <key>Label</key>
        <string>com.smartbear.FloatingLicense</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Applications/FloatingLicenseServerSoapUI/ProtectionLS_4.6.2/bin/ProtectionLS</string>
                <string>start-launchd</string>
        </array>
        <key>RunAtLoad</key>
        <true />
</dict>                                                                         
</plist>

 (The start script arg of "start-launchd" is key)

 

 

To install start script

sudo launchctl load -w /Library/LaunchDaemons/com.smartbear.FloatingLicense.plist

(the -w arg is required)

 

1 Reply