[mgetty] voice: improve systemd unit for vgetty

Michal Sekletar msekleta at fedoraproject.org
Fri Apr 19 12:16:29 UTC 2013


commit e4f257b567564eb501b20502d52e3772316610ad
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Mon Apr 8 15:35:19 2013 +0200

    voice: improve systemd unit for vgetty

 vgetty at .service |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/vgetty at .service b/vgetty at .service
index 20a746b..e74bacb 100644
--- a/vgetty at .service
+++ b/vgetty at .service
@@ -1,15 +1,21 @@
-# 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
+Description=vgetty on /dev/%I
+Documentation=man:vgetty(8)
+BindsTo=dev-%i.device
+After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
+After=rc-local.service
+Before=getty.target
+IgnoreOnIsolate=yes
 
 [Service]
-ExecStart=-/sbin/vgetty /dev/%i
+ExecStart=-/sbin/vgetty /dev/%I
+Type=idle
 Restart=always
 RestartSec=0
+UtmpIdentifier=%I
+TTYPath=/dev/%I
+KillMode=process
+IgnoreSIGPIPE=no
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=getty at .target


More information about the scm-commits mailing list