gpsd: add the possibility to start the gpsd with a different log level
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 28 Jan 2025 09:48:19 +0000 (10:48 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 28 Feb 2025 07:13:00 +0000 (08:13 +0100)
This simplifies the handling of log levels if we need more log information
during development.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
utils/gpsd/Makefile
utils/gpsd/files/gpsd.init

index 91083514cc19e4218e7735021e284192df437d7f..5b52dcfb386738750bf7204eb1528a7aa5308e1a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gpsd
 PKG_VERSION:=3.25
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
index 479eeb2c8c20a32a357521e171815da6fb169714..ba5563e858558be8d16425c8c16620264bc26b77 100644 (file)
@@ -6,6 +6,8 @@ USE_PROCD=1
 PROG=/usr/sbin/gpsd
 NAME=gpsd
 
+LOG_LEVEL="0"
+
 validate_section_gpsd()
 {
        uci_load_validate gpsd gpsd "$1" "$2" \
@@ -29,6 +31,7 @@ gpsd_instance()
 
        [ "$listen_globally" -ne 0 ] && procd_append_param command -G
        procd_append_param command -S "$port"
+       procd_append_param command -D "$LOG_LEVEL"
        procd_append_param command -F /var/run/gpsd.sock
        procd_append_param command "$device"
        procd_set_param respawn