summarylogtreecommitdiffstats
path: root/ibcontroller@.service
blob: 8e7921281b5a63c6546dbab01934e6bfcdfbec48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=IBController
After=network.target

[Service]
Type=simple
TimeoutSec=0
User=root
Group=root

KillMode=control-group

ExecStartPre=/bin/sh -c "mkdir -p /var/run/xvfb"
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/IBC.jar -Xmx512M ibcalpha.ibc.IbcGateway /etc/ibcontroller/%I.ini

[Install]
WantedBy=multi-user.target