gpsd: add wrapper script for hotplug/respawn handling
authorOliver Sedlbauer <redacted>
Wed, 28 Jan 2026 15:57:06 +0000 (16:57 +0100)
committerFlorian Eckert <redacted>
Mon, 2 Mar 2026 12:36:30 +0000 (13:36 +0100)
commit4faa1122695446f8e6d987c95801724997a20c9a
tree0d6f020ca1227645cd39dd510ee2d83c93562bc5
parent292214e76adb8deac900a0d429d6c9ba3c3637f1
gpsd: add wrapper script for hotplug/respawn handling

Gpsd needs some time to create its Unix socket after the process starts.
The hotplug call in service_started() is triggered too early, before the
socket is ready, causing failures in scripts that depend on it.

Additionally, when gpsd crashes and procd respawns it, service_started() is
not called again, so no hotplug event is emitted on respawn. Therefore scripts
listening for gpsd availability miss the STARTED event.

This commit ensures the hotplug call waits for the socket to appear,
so dependent scripts reliably see the STARTED event, even after respawns.

Signed-off-by: Oliver Sedlbauer <redacted>
utils/gpsd/Makefile
utils/gpsd/files/gpsd.init
utils/gpsd/files/usr/sbin/gpsd-wrapper [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT