Skip to content

Commit

Permalink
debian: Update patch from PR glidernet#25
Browse files Browse the repository at this point in the history
  • Loading branch information
kerel-fs committed Feb 20, 2017
1 parent 7d5239e commit 6c2a67c
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@
Expand All @@ -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 @@
Expand All @@ -58,6 +51,3 @@ index 0000000..5066056
+
+[Install]
+WantedBy=multi-user.target
--
2.1.4

0 comments on commit 6c2a67c

Please sign in to comment.