[Unit] Description=Quant live trader monitor (US + CN, all strategies) After=network-online.target [Service] Type=simple WorkingDirectory=/home/gahow/projects/quant-trading ExecStart=/home/gahow/projects/quant-trading/deploy/start-monitor.sh Restart=always # SIGTERM from a stop/restart ends the Python process with 143; count it as a # clean stop so 'Failed' in the journal means a real crash. SuccessExitStatus=143 RestartSec=10 Environment=PYTHONUNBUFFERED=1 [Install] WantedBy=default.target