You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# linien.service
[Unit]
Description=Spectroscopy lock server for RedPitaya
Wants=network-online.target
After=network-online.target
[Service]
# Change this value either with `systemctl edit linien-server.service`, run
# `man systemctl(1)` to read documentation for this command. Perhaps this
# should be read from a file such as `/opt/linien/port` instead.
Environment="LINIEN_PORT=8000"
ExecStart=/usr/bin/env python3 /usr/lib/python3.10/site-packages/linien/server/server.py
# stop / start ethernet blinking using: mdio-tool[1], see:
# https://github.com/RedPitaya/RedPitaya/issues/205
#
# [1]: https://github.com/linien-org/mdio-tool
ExecStartPre=/usr/bin/mdio-tool w eth0 0x1b 0x0000
ExecStopPost=/usr/bin/mdio-tool w eth0 0x1b 0x0f00
[Install]
WantedBy=multi-user.target
# vim:ft=systemd
The text was updated successfully, but these errors were encountered:
On 4 April 2023 9:36:04 GMT+03:00, Bastian Leykauf ***@***.***> wrote:
As suggested by @doronbehar in #277 (comment) , it would look like this
```
# linien.service
[Unit]
Description=Spectroscopy lock server for RedPitaya
Wants=network-online.target
After=network-online.target
[Service]
# Change this value either with `systemctl edit linien-server.service`, run
# `man systemctl(1)` to read documentation for this command. Perhaps this
# should be read from a file such as `/opt/linien/port` instead.
Environment="LINIEN_PORT=8000"
ExecStart=/usr/bin/env python3 /usr/lib/python3.10/site-packages/linien/server/server.py
# stop / start ethernet blinking using: mdio-tool[1], see:
# RedPitaya/RedPitaya#205
#
# [1]: https://github.com/linien-org/mdio-tool
ExecStartPre=/usr/bin/mdio-tool w eth0 0x1b 0x0000
ExecStopPost=/usr/bin/mdio-tool w eth0 0x1b 0x0f00
[Install]
WantedBy=multi-user.target
# vim:ft=systemd
```
--
Reply to this email directly or view it on GitHub:
#330
You are receiving this because you were mentioned.
Message ID: ***@***.***>
As suggested by @doronbehar in #277 (comment) , it would look like this
The text was updated successfully, but these errors were encountered: