From 605968520eb84de83540b7b312e3d5baa2bb9261 Mon Sep 17 00:00:00 2001 From: "Fabian P. Schmidt" Date: Mon, 20 Feb 2017 23:17:17 +0100 Subject: [PATCH] debian: Update patch from PR #25 --- ...systemd-units-for-ogn-decode-and-ogn-rf.patch | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/debian/patches/0001-Add-systemd-units-for-ogn-decode-and-ogn-rf.patch b/debian/patches/0001-Add-systemd-units-for-ogn-decode-and-ogn-rf.patch index 810118c..00ef9d9 100644 --- a/debian/patches/0001-Add-systemd-units-for-ogn-decode-and-ogn-rf.patch +++ b/debian/patches/0001-Add-systemd-units-for-ogn-decode-and-ogn-rf.patch @@ -12,26 +12,22 @@ Subject: [PATCH] Add systemd units for ogn-decode and ogn-rf create mode 100644 scripts/ogn-decode.socket create mode 100644 scripts/ogn-rf.service -diff --git a/scripts/ogn-decode.service b/scripts/ogn-decode.service -new file mode 100644 -index 0000000..f2374e3 --- /dev/null +++ b/scripts/ogn-decode.service -@@ -0,0 +1,11 @@ +@@ -0,0 +1,13 @@ +[Unit] +Description=Decode ogn/flarm data given by a fifo and forward it to glidernet.org +After=network.target time-sync.target + +[Service] ++StandardInput=tty ++StandardOutput=journal +User=ogn +ExecStart=/usr/bin/ogn-decode /etc/rtlsdr-ogn.conf +Restart=on-failure + +[Install] +WantedBy=multi-user.target -diff --git a/scripts/ogn-decode.socket b/scripts/ogn-decode.socket -new file mode 100644 -index 0000000..5ad1405 --- /dev/null +++ b/scripts/ogn-decode.socket @@ -0,0 +1,6 @@ @@ -41,9 +37,6 @@ index 0000000..5ad1405 + +[Install] +WantedBy=sockets.target -diff --git a/scripts/ogn-rf.service b/scripts/ogn-rf.service -new file mode 100644 -index 0000000..5066056 --- /dev/null +++ b/scripts/ogn-rf.service @@ -0,0 +1,11 @@ @@ -58,6 +51,3 @@ index 0000000..5066056 + +[Install] +WantedBy=multi-user.target --- -2.1.4 -