Windows - Linux - OSX


The Agent installer provides an option to run as a Service so the easiest way of setting it up is just to use the installer. If you are currently using the console version of Agent DVR you can switch to running it as a service instead by closing Agent and double clicking agent-install-service.bat in the Agent directory. You will need to be logged in as an administrator for this to work.


To run services on Linux you need to create a systemd ('service unit configuration') file (more info).
Create or edit the 'AgentDVR.service' file in the Agent directory (where you unzipped Agent) and replace the DOT_NET_LOCATION, AGENT_LOCATION and YOUR_USERNAME fields in it (as below):

IMPORTANT: Make sure to update YOUR_USERNAME to your username, AGENT_LOCATION to the location where you unzipped Agent and DOT_NET_LOCATION to where the dotnet executable is. For example sean, /home/sean/Desktop/Agent and /usr/bin/dotnet

Copy the file to the system directory and start it:

sudo cp AgentDVR.service /etc/systemd/system/AgentDVR.service
sudo systemctl daemon-reload
sudo systemctl start AgentDVR

To check the status of the service:

sudo systemctl status AgentDVR.service

In addition to the status command you can use the 'journalctl' command to read everything the service is printing to the console:

sudo journalctl -u AgentDVR

To enable automatic startup of the service on boot, run the following command:

sudo systemctl enable AgentDVR

If you edit the service file you will need to reload the services list:

        sudo systemctl stop AgentDVR
        sudo systemctl daemon-reload
        sudo systemctl start AgentDVR


Create a property file called "agentdvr.plist" at "/Library/LaunchDaemons/" containing:

IMPORTANT: Replace AGENT_LOCATION with the folder where you unzipped Agent DVR.

Load the service by calling:

sudo launchctl load /Library/LaunchDaemons/agentdvr.plist

Start the service by calling:

sudo launchctl start agentdvr