There is no systemd unit file bundled with mgetty, the user has to lookup the internet for a apropiate file. Reproducible: Always I was installing a custom unit: [Unit] Description=Smart Modem Getty(mgetty) Documentation=man:mgetty(8) Requires=systemd-udev-settle.service After=systemd-udev-settle.service [Service] Type=simple ExecStart=/usr/sbin/mgetty -D -s 57600 -n 2 -m '"" AT+VCID=1' /dev/ttyACM0 Restart=always PIDFile=/var/run/mgetty.pid.ttyACM0 [Install] WantedBy=multi-user.target
This seems like a bad unit for general use. It would be better to use serial-getty@.service as a starting point. http://cgit.freedesktop.org/systemd/systemd/tree/units/serial-getty@.service.m4
serial-getty@.service now lives here. https://github.com/systemd/systemd/blob/main/units/serial-getty%40.service.m4
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb8a4f413735a6fa810fd89793a45ad387aac1c0 commit eb8a4f413735a6fa810fd89793a45ad387aac1c0 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-02-28 20:51:43 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-02-28 20:51:43 +0000 net-dialup/mgetty: add systemd unit Also added missing patch for arm64. Closes: https://bugs.gentoo.org/546610 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-dialup/mgetty/files/mgetty-1.2.1-aarch64.patch | 11 ++ net-dialup/mgetty/mgetty-1.2.1-r3.ebuild | 181 +++++++++++++++++++++ 2 files changed, 192 insertions(+)