git add galmon.docs galmon.navnexus.service galmon.navrecv.service galmon.navstar.default

pull/91/head
Patrick Tudor 2020-01-20 13:30:24 -08:00
parent 71a9cad2a4
commit 7388777f69
No known key found for this signature in database
GPG Key ID: 2C12D022F591B853
5 changed files with 61 additions and 0 deletions

6
debian/galmon.docs vendored 100644
View File

@ -0,0 +1,6 @@
Building.md
influxdb.md
Operator.md
PACKAGE-DEBIAN.md
README.md

20
debian/galmon.navnexus.service vendored 100644
View File

@ -0,0 +1,20 @@
[Unit]
Description=galmon navnexus (serve recorded data on port 29601)
After=network.target nss-lookup.target
StartLimitIntervalSec=0
# require that the pre-installed configuration file exists
ConditionPathExists=/etc/default/navstar
[Service]
# Customize $DAEMON_OPTS_NAVNEXUS in /etc/default/navstar
EnvironmentFile=-/etc/default/navstar
Type=simple
Restart=always
RestartSec=4
User=ubxtool
Group=ubxtool
RuntimeDirectory=navnexus
ExecStart=/usr/bin/navnexus $DAEMON_OPTS_NAVNEXUS
[Install]
WantedBy=multi-user.target

20
debian/galmon.navrecv.service vendored 100644
View File

@ -0,0 +1,20 @@
[Unit]
Description=galmon navrecv (receive data on port 29603)
After=network.target nss-lookup.target
StartLimitIntervalSec=0
# require that the pre-installed configuration file exists
ConditionPathExists=/etc/default/navstar
[Service]
# Customize $DAEMON_OPTS_NAVRECV in /etc/default/navstar
EnvironmentFile=-/etc/default/navstar
Type=simple
Restart=always
RestartSec=1
User=ubxtool
Group=ubxtool
RuntimeDirectory=navrecv
ExecStart=/usr/bin/navrecv $DAEMON_OPTS_NAVRECV
[Install]
WantedBy=multi-user.target

8
debian/galmon.navstar.default vendored 100644
View File

@ -0,0 +1,8 @@
# Copyright 2020 AHU Holding BV - bert@hubertnet.nl - https://berthub.eu/
# This package is free software: /usr/share/common-licenses/GPL-3
#
# Here are daemon options used by the navrecv and navnexus services
DAEMON_OPTS_NAVNEXUS="/var/lib/galmon/storage ::"
DAEMON_OPTS_NAVRECV=":: /var/lib/galmon/storage"
#
DAEMON_OPTS_NAVPARSE="[::]:10000 html galileo"

7
debian/rules vendored
View File

@ -9,5 +9,12 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
override_dh_auto_install:
dh_auto_install -- prefix=/usr
# override to install /etc/default/navstar alongside /etc/default/galmon
override_dh_installinit:
dh_installinit --name=navstar
dh_installinit
override_dh_installsystemd:
dh_installsystemd --no-enable --no-start --name=navnexus navnexus.service
dh_installsystemd --no-enable --no-start --name=navrecv navrecv.service
dh_installsystemd --no-enable --no-start --name=ubxtool@ ubxtool@.service