forked from glidernet/ogn-rf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: Import patch from PR glidernet#25
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
debian/patches/0001-Add-systemd-units-for-ogn-decode-and-ogn-rf.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
From 2d5ae0932b8421d0b9cbd1d61bcc93cce7536aae Mon Sep 17 00:00:00 2001 | ||
From: "Fabian P. Schmidt" <[email protected]> | ||
Date: Thu, 16 Feb 2017 09:38:26 +0100 | ||
Subject: [PATCH] Add systemd units for ogn-decode and ogn-rf | ||
|
||
--- | ||
scripts/ogn-decode.service | 11 +++++++++++ | ||
scripts/ogn-decode.socket | 6 ++++++ | ||
scripts/ogn-rf.service | 11 +++++++++++ | ||
3 files changed, 28 insertions(+) | ||
create mode 100644 scripts/ogn-decode.service | ||
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 @@ | ||
+[Unit] | ||
+Description=Decode ogn/flarm data given by a fifo and forward it to glidernet.org | ||
+After=network.target time-sync.target | ||
+ | ||
+[Service] | ||
+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 @@ | ||
+[Socket] | ||
+ListenFIFO=/var/run/ogn-decode.fifo | ||
+SocketUser=ogn | ||
+ | ||
+[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 @@ | ||
+[Unit] | ||
+Description=Receive ogn/flarm data and write the raw data to a fifo | ||
+After=network.target time-sync.target | ||
+ | ||
+[Service] | ||
+User=ogn | ||
+ExecStart=/usr/bin/ogn-rf /etc/rtlsdr-ogn.conf | ||
+Restart=on-failure | ||
+ | ||
+[Install] | ||
+WantedBy=multi-user.target | ||
-- | ||
2.1.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters