diff options
author | Ben Alex | 2017-07-18 11:11:04 +1000 |
---|---|---|
committer | Ben Alex | 2017-07-18 11:11:04 +1000 |
commit | 3da712d390dcb88165623a678f9cec6caba6c409 (patch) | |
tree | 8a963261c6bed6f15db60bc4ca4171f13f82855d /ibcontroller@.service | |
parent | ecd4ee1b292ced57d5078bac63b97f25b09c3388 (diff) | |
download | aur-3da712d390dcb88165623a678f9cec6caba6c409.tar.gz |
Update to IB Controller 3.4.0
IB Controller now requires the jts.ini file to exist and contain at
minimum:
[IBGateway]
ApiOnly=true
As such the systemd service file now creates the file.
Diffstat (limited to 'ibcontroller@.service')
-rw-r--r-- | ibcontroller@.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ibcontroller@.service b/ibcontroller@.service index 865445055ebc..9291ed04f0b0 100644 --- a/ibcontroller@.service +++ b/ibcontroller@.service @@ -11,6 +11,8 @@ Group=root KillMode=control-group ExecStartPre=/bin/sh -c "mkdir -p /var/run/xvfb" +ExecStartPre=/bin/sh -c "mkdir -p $(grep -e '^IbDir=' /etc/ibcontroller/%I.ini | tr -cd '\40-\176' | cut -d '=' -f 2)" +ExecStartPre=/bin/sh -c "echo -e '[IBGateway]\nApiOnly=true" > $(grep -e '^IbDir=' /etc/ibcontroller/%I.ini | tr -cd '\40-\176' | cut -d '=' -f 2)/tws.ini" ExecStart=/usr/sbin/xvfb-run --auto-servernum -f /var/run/xvfb/%I /usr/share/ib-tws/jre/bin/java -cp /usr/share/ib-tws/jars/*:/usr/share/java/ibcontroller/ibcontroller.jar -Xmx512M ibcontroller.IBGatewayController /etc/ibcontroller/%I.ini [Install] |