Run the daily loop on a server with systemd user units
deploy/systemd holds an IB Gateway service (IBC under Xvfb, paper) and timers for the 09:50 ET rebalance, 16:15 ET fills, and a weekly constituents refresh; make install-units installs them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
12
deploy/systemd/ibgateway.service
Normal file
12
deploy/systemd/ibgateway.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=IB Gateway (paper) logged in by IBC, headless under Xvfb
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24" %h/ibc/gatewaystart.sh -inline
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user