-
Download and
install
Service Protector, if necessary.
-
Start Service Protector.
-
Select Protector > Add to open the Add Protector window:
-
You will be on the General tab. In the Service to protect field, choose the Openfire Windows Service.
A green circle will be on the left if the Openfire service is already running, as was the case on our server:
-
Switch over to the Monitor tab. If you find that Openfire accumulates memory or gets slower over time,
we recommend that you periodically restart the service at a time when no one is likely to be using the server. To do so:
Check the At the following times box.
Click the Add button.
Specify the day and time to restart the service. We have chosen every day at 3 AM. Note that you can choose to reboot the server at that time if you like.
Click the OK button to record the time.
-
And if you find that the Openfire Windows Service occasionally gets stuck in the "Stopping" or "Starting" state, click over to the Extras tab and check the corresponding options:
-
We're done adding the service so click the Save button. In a second or two, an entry for Openfire will show up in the main window.
Service Protector is already monitoring Openfire:
-
That's it! Next time your computer boots, Openfire will start and Service Protector will begin watching the service to quickly restart it if it fails.
We encourage you to edit Openfire in Service Protector and check out the many other settings that may be appropriate for your environment.
For example, send email alerts when the service fails, add a health check to detect failures of the web interface, and much more.