Dzieki, David, za post o tresci:
> Martin,
>
> Thanks for all that! I located the service file here:
>
> /lib/systemd/system/gpsd.service
>
> It contains:
>
> [Unit]
> Description=GPS (Global Positioning System) Daemon
> Requires=gpsd.socket
>
> [Service]
> EnvironmentFile=-/etc/default/gpsd
> ExecStart=/usr/sbin/gpsd -N $GPSD_OPTIONS $DEVICES
>
> [Install]
> Also=gpsd.socket
>
> I don't see why that wouldn't start the service, but I really know very
> little at this level.
Well, this unit file doesn't have entries required for enabling
autostart. I guess because socket-activation is used – it
means GPSD is started on-demand, when first client connects.
The appearance of ”gpsd.socket” strongly suggest so.
Following confirms that gpsd is started on client access:
> Again the issue is:
>
> - reboot
> - gpsd service does/not/ start
> - run cgps and exit
> - gosd service is started
>
> It's just as if the "-n" parameter is being ignored.
It's not ignored, gpsd is not started at boot so it
can't intepret this option or not.
Your distribution decided to configure GPSD to be started
on-demand. There is probably some reasoning for it, especially
that there are no means to easily enable on-boot GPSD startup
(using systemctl enable).
Of course you can still manually override those decisions
and start gpsd on boot by issuing:
ln -s /lib/systemd/system/gpsd.service /etc/systemd/system/multi-user.target.wants/
--
Tomasz .. oo o. oo o. .o .o o. o. oo o. ..
Torcz .. .o .o .o .o oo oo .o .. .. oo oo
o.o.o. .o .. o. o. o. o. o. o. oo .. .. o.