FileCloud Watchdog Service

FileCloud Watchdog Service is a service for Windows that automatically monitors the availability of Apache web server and the MongoDB databases and can restart them if they become unavailable or unresponsive. 

Installation

  1. Open a Windows Administrator command prompt.
  2. Navigate to c:\xampp folder (or the xampp folder path).
  3. Run the following to register the service:

    cloudwatchdog.exe /registerService /displayName="FileCloud Watchdog Service"
  4. Start the service.

    net start cloudwatchdog

Uninstall

  1. Open a Windows Administrator command prompt.
  2. Navigate to c:\xampp folder (or the xampp folder path).
  3. Run the following to register the service.

    net stop cloudwatchdog
  4. Start the service.

    cloudwatchdog.exe /unregisterService

Default Configuration

To change parameters related to the Watchdog, adjust the values in the cloudwatchdog.ini file in the xampp folder. 

frequency (in seconds) controls how fast the Watchdog checks the availability of services
serverurl specifies the URL to use to check availability 

; Settings for FileCloud Watchdog
[settings]
frequency=60
serverurl=http://127.0.0.1

 

OpenOffice Configuration

To monitor the OpenOffice service, add the following entries to the ini file and adjust accordingly:
Make sure the oowatchdogcheck.php and oowatchdogsample.txt files are present in the resources\backup folder.

; Settings for FileCloud Watchdog
[settings]
frequency=60
serverurl=http://127.0.0.1
ooservicename=ooservice
ooscriptpath=c:\xampp\htdocs\resources\backup\oowatchdogcheck.php

Troubleshooting

A log for the FileCloud Watchdog Service is inside the XAMPP folder under the filename cloudwatchdog.log