Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 546610

Summary: net-dialup/mgetty lacks a systemd unit file for easy installation
Product: Gentoo Linux Reporter: alexander haensch <alexander.haensch>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: RESOLVED FIXED    
Severity: enhancement CC: net-dialup, systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

Description alexander haensch 2015-04-14 18:14:43 UTC
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
Comment 1 Mike Gilbert gentoo-dev 2015-04-14 18:30:05 UTC
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
Comment 2 Mike Gilbert gentoo-dev 2021-02-28 03:35:01 UTC
serial-getty@.service now lives here.

https://github.com/systemd/systemd/blob/main/units/serial-getty%40.service.m4
Comment 3 Larry the Git Cow gentoo-dev 2021-02-28 20:52:19 UTC
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(+)