[Unit] Description=Overnight-only momentum book on Alpaca paper (MOC buy, MOO sell) After=network-online.target [Service] Type=simple WorkingDirectory=/home/gahow/projects/quant-trading ExecStart=/home/gahow/projects/quant-trading/deploy/start-overnight-paper.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=30 Environment=PYTHONUNBUFFERED=1 [Install] WantedBy=default.target