Modifying the Behavior of the Daemons
Behavior of the daemons can be modified by changing the switches used to start the daemons. Modification requires the following steps:
>Terminating the daemons
>Determining the switches to use
>Saving the modifications
>Restarting the daemons
1.Ensure that you have Administrator privileges.
2.Launch /Applications/Utilities/Terminal.
3.Change the directory to: /Library/LaunchDaemons/
4.At the command prompt, enter the following commands:
sudo launchctl unload com.aladdin.hasplmd.plist
sudo launchctl unload com.aladdin.aksusbd.plist
(When prompted, enter your administrator password.)
The daemons stop running.
To determine which switches to use:
Use the table that follows to determine which command line switches to use to set the behavior of the aksusbd and hasplmd daemons.
Daemon |
Command |
Description |
---|---|---|
Both |
-f |
Forces the daemon to work in the foreground. Required for launchd startup. |
Both |
-h, --help |
Displays a list of available commands |
Both |
-l <level> |
Specifies the level of log messages. The values are: |
Both |
v |
Displays aksusbd and API versions OR Displays hasplmd version |
aksusbd |
-d <milliseconds> |
Specifies the delay after connecting a Sentinel HL (HASP configuration) key or HASP HL key, before it can be accessed the first time (range 0–2000) |
aksusbd |
-q <entries> |
Specifies the length of the work queue (default 64) |
aksusbd |
-u <mask> |
Specifies the permission bits for the special socket file. Default is 666 (access for all users) |
aksusbd |
-s <file> |
Specifies the communication socket name |
hasplmd |
-s, -start |
Starts the Sentinel License Manager daemon |
hasplmd |
-u <user> |
Launches daemon with owner as user to enhance security |
To save the selected switches:
After determining which switches you want to employ, do the following to save the switches in the .plist files so that they will be used each time the daemons are launched when the system is restarted:
>Either edit the relevant .plist files using a text editor OR use the /Developer/Applications/Utilities/Property List Editor (part of the Xcode Developer Tools) to do the following:
a.Add the modifications for aksusbd to /Library/LaunchDaemons/com.aladdin.aksusbd.plist.
b.Add the modifications for hasplmd to /Library/LaunchDaemons/com.aladdin.hasplmd.plist.
Ensure that the -f switch is included in both daemons.
After saving the selected switches, do the following to restart the daemons:
1.Ensure that you have Administrator privileges.
2.Launch /Applications/Utilities/Terminal.
3.Change the directory to: /Library/LaunchDaemons/
4.At the command prompt, enter the following commands
sudo launchctl load com.aladdin.aksusbd.plist
sudo launchctl load com.aladdin.hasplmd.plist
(Enter your Administrator password when prompted.)
The daemons are restarted.
NOTE The Run-time Environment daemons are launched automatically when the system is restarted.