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: Moe
Subject: Re: [gpsd-users] gpsd always starting in foregound (a systemd solution)
Date: Fri, 13 May 2016 08:47:30 +1000

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>



reply via email to

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