Skip to content

Commit

Permalink
ogn-decode.service: Set StandardInput to tty
Browse files Browse the repository at this point in the history
This is a workaround for #11: Version 0.2.5 crashs with SEGV if invoked by systemd,
since ogn-decode exits when it gets an EOF via stdin.
  • Loading branch information
kerel-fs committed Mar 15, 2017
1 parent 228440e commit ee4e7ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/ogn-decode.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Description=Decode ogn/flarm data given by a fifo and forward it to glidernet.or
After=network.target time-sync.target

[Service]
# Using a tty as StandardInput is needed as a workaround,
# since ogn-decode requires an interactive tty (as in: 'doesn't return EOF'),
# see also: https://github.com/glidernet/ogn-rf/issues/11
StandardInput=tty-fail
StandardOutput=journal
TTYPath=/dev/tty3
User=ogn
ExecStart=/usr/bin/ogn-decode /etc/rtlsdr-ogn.conf
Restart=on-failure
Expand Down

0 comments on commit ee4e7ce

Please sign in to comment.