Hi Terry,

> > `disable' stops it starting on booting rather than stopping it now.
> > `mask' blocks it from starting either manually, or as a dependency
> > of something else that's starting.
...
> $ systemctl | grep getty
> serial-getty@ttyS0.service    loaded active running   Serial Getty on ttyS0   
>                
>
> system-serial\x2dgetty.slice  loaded active active 
> system-serial\x2dgetty.slice           
>
> getty.target                   loaded active active    Login Prompts
>
> I tried disabling 'serial-getty@ttyS0.service' but that didn't seem to
> work; if I stop the service, it is definitely gone, but a reboot
> brings it back. even after a disable

That suggests it's a dependency of something else, probably
getty.target.  See `mask' above.

> I'm not sure what getty.target is doing, but it doesn't appear to be a
> service anyway.

No, it's a target.  :-)  systemd.target(5).

> So still wondering.

If mask doesn't work, there's...

> > And http://0pointer.de/blog/projects/serial-console.html
> > suggests your simplest bet would be to alter the kernel's parameters so
> > systemd doesn't want to start a getty.

BTW, this was an occasion where no blank lines followed.

>               Terry Coles
> -- 
>   Next meeting: BEC, Bournemouth, Tuesday, 2019-04-02 20:00

-- 
Cheers, Ralph.

-- 
  Next meeting: BEC, Bournemouth, Tuesday, 2019-04-02 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to