Reconfiguring xDeTECH Services

Configuration properties are stored in files in the config directory of each service. The service must be restarted for any changes to these services to take effect.

  1. Open a terminal window and log in to a session on the container.
  2. List running processes: ps -ef | grep sentinel Example output shows three java processes, from top to bottom: VCDx, VGSx and VGSx tester. The process id (PID) is the leftmost number listed.
Copy
  1. Kill the process you want to reconfigure: kill -9 {PID}where PID represents the Process ID. To kill VGSx in the example above, use kill -9 8893
  2. Change to the config directory for the service: cd {service-folder}/config where service-folder is one of sentinel-vcdx, sentinel-vgsx or sentinel-vgsx-tester
  3. Update the configuration file, either application.properties or application.yml , using a console editor of your choice (example vi ). Alternatively, copy the file from the container, edit it on your desktop and copy it back.
  4. Change directory to the bin directory of the updated service. For example: cd sentinel-vgsx/bi
  5. Restart the service as a background task: ./startup.sh &
  6. Check the service is running. You can check the service logs listed in the directory structure above, and ping the service to be sure.
    1. List running services: ps -ef | grep sentinel
    2. Ping the services:

For VCDx: curl localhost:8099/actuator/health Returns:

JSON
Copy

For VGSx: curl localhost:8080/pingReturns:

JSON
Copy

For VGSx Tester: curl localhost:8081/pingReturns:

JSON
Copy

Check the service logs. Logs are stored in the service’s logs directory. You can type cat {log name} to see that the service has started up without errors.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard