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

Re: What is agetty, and why can't it be stopped?



On Thursday 06 June 2019 05:55:36 pm bw wrote:

> In-Reply-To: <[🔎] 201906061506.20757.gheskett@shentel.net>
>
> >On Thursday 06 June 2019 08:37:36 am bw wrote:
> >> In-Reply-To: <[????] [🔎] 201906052204.09390.gheskett@shentel.net>
> >> <snip>
> >>
> >> >So what I'd like for it to do, is be totally silent during the
> >> > rest of this machines boot, and once a user, me, is logged in, go
> >> > away just as silently, freeing the only serial hardware port for
> >> > my own use.
> >>
> >> ...
> >>
> >> I think the first place I'd look is:
> >>
> >> man logind.conf
> >>
Nothing of use there.

> >> there may be something there to help you figure it out.  Then look
> >> into override if necessary with something like:
> >>
> >> systemctl edit getty@.service
> >
> >Might be, but the dead keyboard hit it 30 minutes back so I rebooted
> > and now its normal.  I need a near beer.
> >
> >Cheers, Gene Heskett
> >--
> >"There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> >-Ed Howdershelt (Author)
> >Genes Web page <http://geneslinuxbox.net:6309/gene>
>
> You have a definite style Gene, and a tenaciousness that I really
> admire. I'm assuming after all this time you are doing some work and
> have a functioning system going, congratulations.
>
Like Sam Clemens, I have never let my education get in the way of my 
learning. But  my education is 8th grade, I went to work in the late 
40's fixing radio and tv's for a living, before that I wired a house my 
stepfather built right after the end of WW-II. I was 12 at the time.  I 
was a nerd before the word was invented.  That scared the girls off so I 
was late finding one that wanted to sleep on the bottom. Good woman but 
I lost her to a stroke 10 years later.  So life's had its ups and downs.

I finished up my working time at 67, the last 18 years at the local CBS 
affiliate, as the Chief and often only engineer, one who had a 
reputation for fixing things. Along the line I picked up an fcc 1st 
phone, and I'm also a C.E.T.  Sat for the mensa, but failed, this was 
about 6 months after I had a pulmonary embolism which hurt my brain some 
I think. Survival rates from those are well under 10%.  He's had several 
opportunities, but I don't think he wants to deal with me just yet. :)
That got me 4F'd during Korea, they had no use for anyone who scored a 98 
on the AFQT. They were looking for machine gun targets I guess.  The 
next best score out of 130 some other boys was 36.
 
> For future reference, you can prevent any systemd service from
> starting by putting a link to /dev/null in /etc/systemd/system AFAIK
> that is exactly what 'systemctl mask' does, but the benefit from using
> systemctl is it also checks your spelling.
>
> I don't think all the 6 getty@ services are started at boot like with
> inittab, the particualt getty appears after the VT is activated.  You
> can mask one or override it as you want with systemctl edit
> getty@ttyWHATEVER and this is pretty cool.  You could setup things to
> do whatever when any particular VT is activated.
>
> good luck
> bw

Not getting anyplace so far, but the reboot has given me only one agetty 
running on tty1, which looks like exactly 
what /etc/systemd/system/getty.target.wants/getty@tty1.service
wants.  It also says as a comment:

# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.

root@coyote:getty.target.wants$ locate serial-getty@.service
/lib/systemd/system/serial-getty@.service

But wouldn't a link to that have to exist in this /etc/systemd tree?

But no serial-getty@.service exists in this tree, but it does exist as
/lib/systemd/system/serial-getty@.service

So what sort of a precondition that didn't happen on this reboot, would 
trigger this above file to grab and lockup /dev/ttyS0 like it did on the 
last reboot.

I am beginning to get a very dim glimmer of how systemd works.  And its 
not impressing me.

Thanks bw, you gave me some usefull clues.  Take care.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: