Running agent as a service
You can run the agent as a service on Windows, Mac or Linux. When the agent is running as a service, it restarts automatically when your machine is restarted. Installing the agent as a service
The service will start automatically. Starting and stopping the serviceOnce the agent is installed as a service, you can start or stop it as any other service process. For example, on Windows, you can start and stop it from the Task Manager by right-clicking the service name and clicking Start Service or Stop Service:
Alternatively, you can start and stop the service from the command prompt on Windows or with sudo on Mac or Linux. To start the service:java -Xms512M -Xmx1G -jar agent.jar service start To stop the service:java -Xms512M -Xmx1G -jar agent.jar service stop Uninstalling the serviceYou can uninstall the service from the command prompt on Windows or with sudo on Mac or Linux: java -Xms512M -Xmx1G -jar agent.jar service uninstall Installing multiple agents as a serviceOn Windows, you can install two or more agents as a service from the command prompt using the servicename parameter; for example: java -Xms512M -Xmx1G -jar agent.jar servicename:MediaAgent1 service install java -Xms512M -Xmx1G -jar agent.jar servicename:MediaAgent2 service install If you are running multiple agents as Windows services, you can use the servicename parameter to start, stop or uninstall a specific service on Windows; for example: java -Xms512M -Xmx1G -jar agent.jar servicename:MediaAgent1 service start java -Xms512M -Xmx1G -jar agent.jar servicename:MediaAgent1 service stop java -Xms512M -Xmx1G -jar agent.jar servicename:MediaAgent2 service uninstall
|
|
|
|
||||
|
|
|||||
|