Skip to content

Application Type - Generic

Generic Application is a application that can run any process you want. You need to specify the commands that start, stop and terminate process.

Example configuration

app:
  name: 'python-app'
  version: '1.0.0'
  appType: 'standard'
  procType: 'native'
  processProvider:
    name: 'GenericOsProcessProviderImpl'
    version: '1.0.0'
    executable:
      start:
        command: 'python3 ${ont_app_path}/bin/main.py --port ${ont_port_1} --log_dir ${ont_app_logs_path}'
        successLine: 'Application started.'
      stop:
        command: "pkill -SIGTERM -F ${ont_log_path}/ONTEON_PID"
      terminate:
        command: "pkill -SIGKILL -F ${ont_log_path}/ONTEON_PID"
  placeHolder:
    name: 'PlaceHolderManagerImpl'
    version: '1.0.0'
  serviceRepository:
    healthCheckUrl: 'http://${address}:${ont_port_1}'
    entities:
      - entity:
          priority: 1
          port: ${ont_port_1}
          protocol:
            type: 'HTTP'
            version: '1.1'
          isExternal: true
          isInternal: true