gpsd-users
[Top][All Lists]
Advanced

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

Re: socket activation and -n?


From: Russell Nelson
Subject: Re: socket activation and -n?
Date: Thu, 13 Feb 2020 11:14:16 -0500

I believed that too, but it seems not to have worked. :(

On Wed, Feb 12, 2020 at 8:58 PM Alexander Carver <address@hidden> wrote:
I believe if you stop the socket service, remove the .socket file, and
remove the requirement in the .service file then socket activation will
not be used and gpsd will start immediately.

On 2020-02-12 13:19, Dominic Amann wrote:
> Ah - so like the old inetd (that was a good system). Your work-around
> sounds OK - any downside?
>
> On Wed, 12 Feb 2020 at 16:09, Russell Nelson <address@hidden> wrote:
>
>> That doesn't help because of "socket activation." I've resorted to using
>> the hack of `sh.nc(0, 2947, _in="/dev/null", _out="/dev/null")` . Maybe
>> some systemd expert will tell me how to avoid using socket activation at
>> all?
>>
>> On Wed, Feb 12, 2020 at 3:11 PM Dominic Amann <address@hidden>
>> wrote:
>>
>>> I am certainly no systemd expert - its just installed on our base system
>>> and I end up having to deal with it. That's why I run devuan at home.
>>>
>>> It sounds like the client connection unit needs to have a "Before"
>>> dependency on gpsd (and so gpsd would need to be started by systemd for
>>> systemd to be aware of it).
>>>
>>>
>>>
>>> On Wed, 12 Feb 2020 at 14:37, Gary E. Miller <address@hidden> wrote:
>>>
>>>> Yo Dominic!
>>>>
>>>> On Wed, 12 Feb 2020 14:18:24 -0500
>>>> Dominic Amann <address@hidden> wrote:
>>>>
>>>>> Not a systemd user by choice.
>>>>
>>>> Some may be stuck wuth systemd, but they are never stuck running gpsd
>>>> under systemd.  The later is a choice.
>>>>
>>>>> Did you run sytemctl daemon-reload after changing anything (removing
>>>>> script etc)?
>>>>
>>>> The problem is that systemd does not start gpssd before a client
>>>> connects,
>>>> so the "-n" has no practical effect.
>>>>
>>>> RGDS
>>>> GARY
>>>>
>>>> ---------------------------------------------------------------------------
>>>> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>>>>         address@hidden  Tel:+1 541 382 8588
>>>>
>>>>             Veritas liberabit vos. -- Quid est veritas?
>>>>     "If you can't measure it, you can't improve it." - Lord Kelvin
>>>>
>>>
>>>
>>> --
>>>
>>>
>>> Dominic Amann
>>>
>>> M 416-270-4587
>>>
>>
>



reply via email to

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