Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
360 | f9daq | 1 | [Unit] |
2 | Description=TCP socket server for binary transfers of waveforms on Red Pitaya |
||
3 | After=network.target |
||
4 | |||
5 | [Service] |
||
6 | Type=simple |
||
7 | Restart=always |
||
8 | #PIDFile=/var/run/redpitaya_scpi.pid |
||
9 | # TODO: it should be possible to use EnvironmentFile, but it is not working properly |
||
10 | # complains about failing library path, or something else |
||
11 | #EnvironmentFile=/etc/sysconfig/redpitaya |
||
12 | Environment=PATH_REDPITAYA=/opt/redpitaya |
||
13 | Environment=LD_LIBRARY_PATH=/opt/redpitaya/lib PATH=/sbin:/usr/sbin:/bin:/usr/bin:/opt/redpitaya/sbin:/opt/redpitaya/bin |
||
14 | ExecStartPre=/bin/sh -c "cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg" |
||
15 | #ExecStart =/opt/redpitaya/bin/socket-server |
||
16 | ExecStart =/root/sockserv/sockserv |
||
17 | #ExecReload= |
||
18 | ExecStop =/bin/kill -15 $MAINPID |
||
19 | |||
20 | [Install] |
||
21 | WantedBy=multi-user.target |