summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-08-17gpsdate: Discard gpsd reports when no fix or no satellites usedHEADmasterHarald Welte1-2/+26
We've observed several times that GPS receivers would report a wrong time/date directly after boot, probably assuming that their RTC is correct. Let's wait until the receiver reports it has a fix and reports actual satellites were used to compute it.
2017-07-24gpsdate.service: Install correctly when service is enabledPau Espin Pedrol1-0/+3
systemctl enable requires an Install section with some target to know how to set up correctly the service.
2016-08-01gpsdate.init: Use GPSDATE_{HOST,PORT} from /etc/default/gpsdateHarald Welte1-1/+1
so far only the sytemd service file used those variables, but not the init script. Fix that.
2015-08-05add gps-watchdogHarald Welte2-1/+283
gps-watchdog is a small tool that will connect to gpsd as a client using libgps. If no data is received for a configurable timeout, a configurable systemd service will be killed via 'systemctl kill'. The idea is that this will restart gpsd, and some ExecStartPre of the gpsd service is then re-initializing the gps receiver hardware.
2015-02-14Add an option to not fork and use itHolger Hans Peter Freyther2-4/+10
For systemd it is better to not fork. Add an option for that. Fixes: SYS#1152
2015-02-14systemd: Add a simple service file gpsdateHolger Hans Peter Freyther1-0/+7
Expect that it forks and that a /etc/default/gpsdate file does exist.
2014-12-20Allow user to specify a non-standard gpsd portHarald Welte1-4/+6
.. which is required on the ODU.
2014-12-20Allow configuration of number of retconnect-attempts/intervalHarald Welte1-5/+31
2013-10-14reconnect to gpsd if it disappears while we wait for fix/timeHarald Welte1-7/+50
In some cases, gpsd might die while we are waiting to receive a valid fix/time information. In that case, we have to reconnect to gpsd again and again, until a valid time has been received (and set as system clock).
2013-08-29avoid using 99% CPU in case gpsd diesHarald Welte1-1/+21
This addresses and issue when gpsdate is running and the gpsd will be killed (testing coredump handling). The issue is within the libgps cod itself that doesn't handle the result(0) of the recv syscall correctly and keeps on looping. Now in a normal system gpsdate should only execute at the beginning and exit once there is a date. So the window for this runtime failure is quite low. Bug reported by Holger Freyther.
2013-06-20gpsdate.init: Make the killing of gpsdate work on the targetHolger Hans Peter Freyther1-1/+1
When the initscript is called gpsdate it might kill itself before it has a way to start the new gpsdate process. Use pidof with the full path to the gpsdate binary to avoid this.
2013-06-20gpsdate.init: Implement stop using killall for nowHolger Hans Peter Freyther1-0/+3
The easiest way would be to use start-stop-daemon and let it daemonize the process and create a pid file. Because all of this is not there and the application unconditionally daemonizes itself I can just use killall to stop it.
2013-06-20gpsdate.init: Fix calling stop and start in the initscriptHolger Hans Peter Freyther1-2/+2
Now a stop/start could result in having two gpsdate processes running. They luckily will die once the time has been set.
2013-04-10update init script defaults for update-rc.dHarald Welte1-3/+3
2013-04-10run until we receive valid GPS timestampHarald Welte1-1/+4
2013-04-10daemonize after gpsd connection is established; gps fix might take timeHarald Welte1-0/+52
2013-04-10Makefile: Move -lgps to the end for particularly picky linkersHarald Welte1-1/+1
2013-04-10Makefile: don't put "-lgps" into LDFLAGS as this is overridden by bitbake/pokyHarald Welte1-2/+1
2013-04-10add GPLv2Harald Welte1-0/+339
2013-04-10add example init script for gpsdateHarald Welte1-0/+73
2013-04-10gpsdate: log the actual time that was set to the RTC.Harald Welte1-1/+5
2013-04-10use syslog() for reporting errors and statusHarald Welte1-3/+10
2013-04-10Add -Wall and -O2 to CFLAGSHarald Welte1-0/+1
2013-04-10perform up to 60 attmepts to re-connect to gpsd and print more statusHarald Welte1-3/+21
2013-04-10initial checkin of 'gpsdate' programHarald Welte2-0/+91