[Unit] # Devices may be powered later than this PC. Do not exhaust startup retries. StartLimitIntervalSec=0 [Service] # network-online alone does not guarantee that device services accept TCP. ExecStartPre=/usr/bin/python3 /home/cmvr/project/cmvr-es/scripts/wait_network_devices.py --config-dir /home/cmvr/project/cmvr-es/output/bin/config --timeout 180 --stable-seconds 10 # Check sockets owned by this process, not just a running PID or open gRPC port. ExecStartPost=/usr/bin/python3 /home/cmvr/project/cmvr-es/scripts/wait_network_devices.py --config-dir /home/cmvr/project/cmvr-es/output/bin/config --mode connected --pid $MAINPID --timeout 60 --stable-seconds 3 Restart=on-failure RestartSec=10 TimeoutStartSec=260