gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] gpsd always starting in foregound (a systemd solution)


From: Dominic Amann
Subject: Re: [gpsd-users] gpsd always starting in foregound (a systemd solution)
Date: Fri, 13 May 2016 08:48:09 -0400

Personally I found the best solution here: <http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation>. I removed systemd, and gpsd worked perfectly on reboot. However, I can't guarantee all your software will work after doing this, since somehow the systemd folk have bullied everyone downstream to write code that conforms to systemd.

On 12 May 2016 at 18:47, Moe <address@hidden> wrote:
On Thu, 12 May 2016 10:38:52 -0700
Chris Kuethe <address@hidden> wrote:

> It appears you're running "service xyz" as non-root, and the system is
> trying to be helpful. I think it's pol-kit that generates the actual
> prompt, either in a gui or a terminal as appropriate. If you run "sudo
> service xyz" you won't be prompted to authenticate because root is
> authorized to do those things.
>
> yeah. i hate systemd too.
>
> On Thu, May 12, 2016 at 9:34 AM, Eric S. Raymond <address@hidden> wrote:
> > Moe <address@hidden>:
> >> As others have noted the -N flag accompanied all gpsd starts regardless of the contents of /etc/default/gpsd file.  This was tracked down to:
> >>
> >> # cat /lib/systemd/system/gpsd.service
<snip>
> >> Add two lines  <----actually, just one line
> >>
> >> Type=forking
<snip>
> >> [Service]
> >> Type=forking
<snip>
> >> gpsd now is controlable via
> >>
> >> service gpsd stop
> >> service gpsd start
> >> service gpsd restart
> >>
> >> There are the irritating pop up authentications, but it works for me, and the contents of /etc/default/gpsd are no longer glossed over.
> >
> > These changes look good (I'm just learning systemd now). Who is generating the
> > popups, when and why?

My money is on the pol-kit too.

Using sudo preface is a better choice as the stop/re/start task is done with one authentication, rather than one for the service and one for the socket, even if the socket has been removed.

--
Moe <address@hidden>




--


People are generally better persuaded by the reasons which they have themselves discovered than by those which have come into the mind of others - Blaise Pascal.

Dominic Amann
M 416-270-4587

reply via email to

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