-
Download and
install
Service Protector, if necessary.
-
Start Service Protector.
-
Select Protector > Add to open the Add Protector window:
-
On the General tab, in the Service to protect field, select the UniFi Controller windows service. It will be called UniFi Controller.
There will be a green circle next to the name if the service is already running.
-
Click the Save button. In a few seconds, an entry for UniFi Controller will show up in the Service Protector window.
The UniFi Controller windows service may be running but it is not yet being protected by Service Protector.
Click on the green circle to see details of the UniFi Controller service:
-
To start monitoring UniFi Controller, choose Protector > Start "UniFi Controller".
In a couple of seconds the shield icon in the Protected column will go green to show that UniFi Controller is being managed by Service Protector.
Click on the green shield to see details of the UniFi Controller service:
-
That's it! Next time your computer boots, UniFi Controller will start up automatically (as normal) and Service Protector will start monitoring the service to restart it quickly it if it crashes for any reason.
We encourage you to edit the UniFi Controller entry in Service Protector and check out the many other settings that may be helpful in your environment.
For example, periodically restart the service to cure memory leaks, configure a script to detect failures of the web interface, and much more.