From 1bb67e16d789a81de9ab3f8e2ec8214e07fdd748 Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Aug 05 2011 08:38:14 +0000 Subject: added sd patch and vgetty unit file template --- 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@.service unit file template. There is necessary to create symbolic link to this template that defines device name (e.g. vgetty@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@.service b/vgetty@.service new file mode 100644 index 0000000..789ee87 --- /dev/null +++ b/vgetty@.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