UniFi - Run the controller as a Windows service

Overview


Readers will learn how to run the UniFi controller software as a Windows service.

Windows services are often useful since they are “background” applications which don’t require any attention on the part of the end-user. In this way, the service will launch upon startup, without any intervention on the part of the user.

The steps to enable this service are outlined below:

Steps


  1. Close any instances of the UniFi software on the controller
  2. Open the command prompt as an Administrator
  3. Run Command Prompt as an Administrator, then change directory to the location of UniFi in your computer, using the command:
    cd "%UserProfile%\Ubiquiti UniFi\"
  4. Once in the root of the UniFi folder, issue the following:
    “java -jar lib\ace.jar installsvc”

Note: you will need to use Java JRE 8, which you can download HERE. For the UniFi cloud service (unifi.ubnt.com) to work, you need to use x64 Java only.

When upgrading the service first run "java -jar lib/ace.jar uninstallsvc" to remove the old the service. After the update is complete, run "java -jar lib/ace.jar installsvc" to install the service for the updated controller instance.

If you simply stop the service, then start the service you will have duplicate services running. 

User Notes & Tips


Back to Top

These notes have been added thanks to user collaboration. Have anything to contribute? Click on the Give Feedback button below!

  • "Switching to a service means you have to open up ports on your firewall now."
  • "Additionally, you need the 32-bit Java Version to run UniFi as Service. Update the "Commons Daemon Service Runner" you use with the 64-bit version, so you won’t need the 32-bit Java Version. I tested it successfully. You can find the binaries here." - Specific to 4.8.x-5.2.9. Fixed as of 5.3.8.

     

Powered by Zendesk