Technote 014
Restarting LANrev or forcing LANrev to reload its configuration
Question:
Is there a way to restart the LANrev agent and server gracefully, as well as force them to reload their configuration information?
Answer:
LANrev 4.6 on Mac OS 10.4 and higher
Starting with version 4.6, LANrev is now started via launchd, which will automatically restart the agent or server if they are stopped for any reason. As a side effect you can no longer stop and start the LANrev Mac agent or server via systemstarter at the Terminal but must use launchctl instead. To stop the LANrev agent or server you must know its process ID.
To stop the LANrev agent
Mac OS X 10.4
sudo /bin/launchctl unload "/Library/LaunchDaemons/com.poleposition-sw.LANrevAgent.plist"
kill -TERM <agentpid>
Mac OS X 10.5
sudo /bin/launchctl unload "/Library/LaunchDaemons/com.poleposition-sw.LANrevAgent.plist"
To start the LANrev agent
Mac OS X 10.4 & 10.5
sudo /bin/launchctl load "/Library/LaunchDaemons/com.poleposition-sw.LANrevAgent.plist"
To stop the LANrev server
Mac OS X 10.4
sudo /bin/launchctl unload "/Library/LaunchDaemons/com.poleposition-sw.LANrevServer.plist"
kill -TERM <serverpid>
Mac OS X 10.5
sudo /bin/launchctl unload "/Library/LaunchDaemons/com.poleposition-sw.LANrevServer.plist"
To start the LANrev server
Mac OS X 10.4 & 10.5
sudo /bin/launchctl load "/Library/LaunchDaemons/com.poleposition-sw.LANrevServer.plist"
To reload agent or server settings
When making changes to the LANrev agent or server configuration files you do not need to stop them. Sending a HUP (Hang UP) signal to the LANrev agent or server process from the Terminal will cause it to restart and reload its configuration information.
To force the LANrev agent or server to reload its configuration data run the following command from the Terminal
sudo kill -HUP <process_id>
where <process_id> is the process id of the LANrev agent or server.
LANrev 4.6 on Mac OS X 10.3, LANrev 4.5 and below
Apple provides a program called systemstarter, which can be used to start, stop, and restart system services. It provides a way of gracefully terminating the LANrev agent or server, as opposed to abruptly killing the LANrev agent or server process, which is not recommended.
To stop the LANrev agent or server run one of the following commands at the Terminal
sudo systemstarter stop LANrevAgent
sudo systemstarter stop LANrevServer
To start the LANrev agent or server replace "stop" with "start". If you want to restart them because they are already running, replace "stop" with "restart".
When making changes to the LANrev agent or server configuration files you do not need to stop them. Sending a HUP (Hang UP) signal to the LANrev agent or server process from the Terminal will cause it to restart and reload its configuration information.
To force the LANrev agent or server to reload its configuration data run the following command from the Terminal
sudo kill -HUP <process_id>
where <process_id> is the process id of the LANrev agent or server.
Windows
To stop, start, or restart the LANrev agent or server in Windows use the Windows Services applet. Select either the LANrev Agent or LANrev Server service to stop, start, or restart.
To force the LANrev agent or server to reload its configuration data, change the appropriate "Trigger" registry value to 1.
HKEY_LOCAL_MACHINE\Software\Pole Position Software\LANrev Agent\Trigger
HKEY_LOCAL_MACHINE\Software\Pole Position Software\LANrev Server\Trigger
|