- User ID
- 1
- Joined
- 7 Jan 2019
- Messages
- 1,315
- Reaction score
- 87
- Points
- 48
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
When upgrading the service first run “java -jar lib\ace.jar uninstallsvc” (may vary depending on where you run command from) to remove the old the service. Update the UniFI controller. 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.
Video tutorial
Source: https://help.ubnt.com/hc/en-us/articles/205144550-UniFi-Run-the-controller-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
- Close any instances of the UniFi software on the controller
- Open the command prompt as an Administrator
- Locate the java installation directory.
Java 7 is usually found at “C:\Program Files\Java\jre7\bin”;
Java 8 has a symbolic link, which is already added to PATH, so you should be able to skip step 4. - Add the dir above to the PATH (as seen under Computer->Properties->Advanced system settings)
- Run Command Prompt as an Administrator, then change directory to the location of UniFi in your computer, using the command “cd”
- Andy’s tips: if you are following the default installation location, you can use this one line: “cd “%userprofile%\Ubiquiti UniFi””
- Type “java -jar lib\ace.jar installsvc”
When upgrading the service first run “java -jar lib\ace.jar uninstallsvc” (may vary depending on where you run command from) to remove the old the service. Update the UniFI controller. 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.
Video tutorial