[Unit] Description=ibkr-quant: record today's executions After=ibgateway.service # Executions are only reported for today, so retry a failed Gateway for an hour. StartLimitIntervalSec=3600 StartLimitBurst=4 [Service] Type=oneshot WorkingDirectory=%h/projects/ibkr-quant Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin ExecStartPre=/usr/bin/make gateway ExecStart=/usr/bin/make fills Restart=on-failure RestartSec=300