[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] gpxlogger daemon mode is not working?
From: |
Beat Bolli |
Subject: |
Re: [gpsd-users] gpxlogger daemon mode is not working? |
Date: |
Fri, 5 Feb 2016 20:40:26 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 05.02.16 18:22, Beat Bolli wrote:
> On 04.02.16 19:20, Free.man wrote:
>> Any suggestions?
>
> You need to restart the logger when it quits:
>
> while true; do
> gpxlogger -d -i 30 -m 5 -f /home/pi/trip_log_$(date
> +"%Y-%m-%d_%H%M%S").gpx /dev/ttyAMA0
> done
>
> This way, the loop repeats until the shutdown command kills all processes.
Sorry, this is of course utter bovine excrement :-/
You either need a tool that can supervise daemons and restart them if
they quit, or use a small modification of the idea above:
while true; do
gpxlogger -i 30 -m 5 -f /home/pi/trip_log_$(date
+"%Y-%m-%d_%H%M%S").gpx /dev/ttyAMA0
done &
Note the ampersand that puts the whole while loop in the background so
you don't have to use gpxlogger's daemon mode.
Regards and sorry for the noise,
Beat
--
https://drbeat.li
pgp: 0x506A903A; 49D5 794A EA77 F907 764F D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E
"It takes love over gold, and mind over matter" -- Dire Straits