Changes between Version 6 and Version 7 of expansion/gw16168


Ignore:
Timestamp:
05/01/2026 10:18:16 PM (103 minutes ago)
Author:
Tim Harvey
Comment:

update eiq-aaf-connector service

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16168

    v6 v7  
    216216[Unit]
    217217Description=eIQ AAF Connector Service
    218 After=network.target rt-sdk-ara2.service
     218# No 'After' or 'Wants' for rt-sdk-ara2.service here
     219# This prevents the 'Ordering Cycle' entirely
     220After=network.target
     221StartLimitIntervalSec=0
    219222
    220223[Service]
     
    222225User=root
    223226WorkingDirectory=/usr/share/eiq/aaf-connector
    224 ExecStart=/usr/share/eiq/aaf-connector/venv/bin/connector --host 127.0.0.1 --port 8000
     227
     228# This loop now handles the dependency logic internally.
     229# It will spin until the proxy is actually alive, regardless of
     230# which service started it or when.
     231ExecStartPre=/bin/bash -c 'until ss -Hltn | grep -E -q ":5000([[:space:]]|$)"; do echo "Waiting for ARA2 Proxy to initialize..." >&2; sleep 5; done'
     232ExecStartPre=/bin/sleep 2
     233
     234ExecStart=/usr/share/eiq/aaf-connector/venv/bin/connector --host 0.0.0.0 --port 8000
     235
    225236Restart=on-failure
    226 RestartSec=5s
     237RestartSec=10s
     238StartLimitBurst=0
     239
    227240StandardOutput=journal
    228241StandardError=journal
     
    232245EOF
    233246}}}
     247  - this one differs from the one in the deb's postinst script as I found that one to not work (it would not wait for the proxy to be alive)
    234248  - If you wish this to be accessible from the Network set the host to '0.0.0.0' instead of '127.0.0.1':
    235249{{{#!bash