I have a Stretch system n which I would like to replace agetty with ngetty (for various reasons like because I have no use for serial lines, and I like the way ngetty can be configured, for examples).
I know how to do that in runit or sysvinit, but I can't find where the info is with systemd.
I can find nothing which seems related in /etc (the inittab file is simply not used for the related lines) but there seems to have related files in /lib/systemd/system/.
I must admit I do not feel comfortable to hack things in this folder, so what would be the cleanest way to do that in Debian?
Thanks.
ngetty
is not a drop-in replacement foragetty
. It is invoked differently, and it has its own service management. To make actual use of that, one wouldn't do things as per that question and the answer here would be somewhat different. Also note thatngetty
's on-demand TTY login service invocation fights withsystemd-logind
's on-demand TTY login service invocation. – JdeBP Aug 16 '17 at 11:33