add systemd; add dependencies

This commit is contained in:
Jakob Ketterl 2019-12-08 17:35:37 +01:00
parent 57ec4e09ad
commit 527eccd3c6
4 changed files with 19 additions and 4 deletions

5
debian/control vendored
View File

@ -3,10 +3,11 @@ Maintainer: Jakob Ketterl <jakob.ketterl@gmx.de>
Section: hamradio Section: hamradio
Priority: optional Priority: optional
Standards-Version: 4.2.0 Standards-Version: 4.2.0
Build-Depends: debhelper (>= 10), dh-python, python3 (>= 3.6) Build-Depends: debhelper (>= 10), dh-python, python3 (>= 3.6), dh-systemd (>= 1.5)
Package: openwebrx Package: openwebrx
Architecture: all Architecture: all
Depends: python3 (>= 3.6), csdr (>= 0.15), netcat, Depends: python3 (>= 3.6), csdr (>= 0.15), netcat, owrx-connector (>= 0.1)
Recommends: digiham (>= 0.2), dsd (>= 1.7)
Description: multi-user web sdr Description: multi-user web sdr
Open source, multi-user SDR receiver with a web interface Open source, multi-user SDR receiver with a web interface

View File

@ -1 +1,2 @@
config_webrx.py etc/ config_webrx.py etc/
systemd/openwebrx.service lib/systemd/system/

2
debian/rules vendored
View File

@ -2,4 +2,4 @@
export PYBUILD_NAME=openwebrx export PYBUILD_NAME=openwebrx
%: %:
dh $@ --with python3 --buildsystem=pybuild dh $@ --with python3 --buildsystem=pybuild --with systemd

13
systemd/openwebrx.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=OpenWebRX WebSDR receiver
After=multi-user.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/openwebrx
Restart=on-failure
[Install]
WantedBy=multi-user.target