gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] gpsd / systemd bug?


From: Peter Collard
Subject: [gpsd-users] gpsd / systemd bug?
Date: Tue, 25 Oct 2016 18:00:38 +0100

On a Raspberry pi the -G flag has no effect when using 'service' eg:

sudo service gpsd start

address@hidden:$ netstat -a | more
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 localhost:gpsd          *:*                     LISTEN     

address@hidden:$ ps -ef | grep gpsd
gpsd      1251     1  4 14:23 ?        00:00:08 /usr/sbin/gpsd -N -G -n /dev/ttyUSB0

However when I use the commandline all is well

sudo /usr/sbin/gpsd -N -G -n /dev/ttyUSB0

netstat -a | more
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:gpsd                  *:*                     LISTEN  

My gspd.socket file looks like this. Would this explain the problem and does anyone have a solution (Documentation on systemd seems lacking) I've tried just putting the port but it seems to default to IP6 and I don't want to hardcode the IP as its defined in the router, not the interfaces file. 

 [Socket]
ListenStream=/var/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=127.0.0.1:2947
SocketMode=0600




reply via email to

[Prev in Thread] Current Thread [Next in Thread]