Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546610 - net-dialup/mgetty lacks a systemd unit file for easy installation
Summary: net-dialup/mgetty lacks a systemd unit file for easy installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2015-04-14 18:14 UTC by alexander haensch
Modified: 2021-02-28 20:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)