[mgetty] added sd patch and vgetty unit file template

Jiri Skala jskala at fedoraproject.org
Fri Aug 5 08:38:28 UTC 2011


commit 1bb67e16d789a81de9ab3f8e2ec8214e07fdd748
Author: Jiri Skala <jskala at redhat.com>
Date:   Fri Aug 5 10:38:14 2011 +0200

    added sd patch and vgetty unit file template

 mgetty-1.1.36-sd.patch |   31 +++++++++++++++++++++++++++++++
 vgetty at .service        |   16 ++++++++++++++++
 2 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/mgetty-1.1.36-sd.patch b/mgetty-1.1.36-sd.patch
new file mode 100644
index 0000000..c88b15e
--- /dev/null
+++ b/mgetty-1.1.36-sd.patch
@@ -0,0 +1,31 @@
+diff -up mgetty-1.1.36/voice/man/man8/vgetty.8.sd mgetty-1.1.36/voice/man/man8/vgetty.8
+--- mgetty-1.1.36/voice/man/man8/vgetty.8.sd	2001-12-22 23:52:43.000000000 +0100
++++ mgetty-1.1.36/voice/man/man8/vgetty.8	2011-08-05 09:14:31.000000000 +0200
+@@ -10,8 +10,13 @@ vgetty \- voice extension to the mgetty+
+ .RI ttydevice
+ 
+ .B vgetty
+-is not meant to be run from the command line. It should be
+-run from the /etc/inittab file so it can respawn after each
++is not meant to be run from the command line.
++
++Systems with
++.B SysV initscripts
++should start
++.B vgetty
++from the /etc/inittab file so it can respawn after each
+ call. Here is a typical inittab entry:
+ 
+ S0:345:respawn:/usr/local/sbin/vgetty ttyS0
+@@ -21,6 +26,11 @@ If you already have a line in your initt
+ replace it with
+ .B vgetty,
+ since it replaces/extends its functionality.
++
++.B Systemd
++\-
++.B vgetty 
++contains vgetty at .service unit file template. There is necessary to create symbolic link to this template that defines device name (e.g. vgetty at ttyS0.service). See systemd.unit(5) for further details.
+ .SH DESCRIPTION
+ .B vgetty
+ is an extension to the mgetty+sendfax program which provides
diff --git a/vgetty at .service b/vgetty at .service
new file mode 100644
index 0000000..789ee87
--- /dev/null
+++ b/vgetty at .service
@@ -0,0 +1,16 @@
+# This is a basic .service file used with systemd to control vgetty.
+#
+# Vgetty turns your voice modem into an answering machine.  
+# It is apart of the mgetty package. http://alpha.greenie.net/vgetty/
+
+[Unit]
+Description=Vgetty turns your voice modem into an answering machine
+After=syslog.target
+
+[Service]
+ExecStart=-/sbin/vgetty /dev/%i 
+Restart=always
+RestartSec=0
+
+[Install]
+WantedBy=multi-user.target


More information about the scm-commits mailing list