Thank's , but it is the same result here. I used I did a daemon-reload first, and also tried start without enable first, same result. These also have ? instead of pts/n in ps -ef|grep iucvtty output.
Do I need more files than this service file ? BR /Tore Agblad -----Original Message----- From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Hendrik Brueckner Sent: den 13 november 2014 3:31 To: [email protected] Subject: Re: RHEL7 systemd, howto add /usr/bin/iucvtty hvc1 -- /bin/login ?? Hi Tore, On Thu, Nov 13, 2014 at 02:12:32PM +0000, Agblad Tore wrote: > Hi, have tried adding the very early start of at least one 'iucvtty hvc1' to > begin with. > It does start, but when I tried to login the login just ends without any > messages or delays. > I have added this little file: > > /etc/systemd/system/iucvtty.service (it is a modified copy of > getty.service) I am aware of the missing systemd unit for iucvtty. There is already a Red Hat Buzilla to solve this gap. The Red Hat bugzilla is: Bug 1098575 - iucvterm: provide ttyrun/iucvtty system instance units I am not sure whether you have access to this bugzilla... so here's one solution similar to yours: Create a /etc/systemd/system/[email protected] file with the following content: --------------------------------------------------------------------------- # Systemd unit for starting iucvtty instances. # # The instance ID corresponds to the terminal identifier for the iucvtty # instance. # [Unit] Description=iucvtty login for terminal ID %I Documentation=man:iucvtty(1) man:iucvconn(1) man:login(1) After=systemd-user-sessions.service plymouth-quit-wait.service After=rc-local.service Before=getty.target Conflicts=rescue.service IgnoreOnIsolate=yes [Service] ExecStart=/usr/bin/iucvtty %I KillMode=process Restart=always RestartSec=0 IgnoreSIGPIPE=no SendSIGHUP=yes [Install] WantedBy=getty.target --------------------------------------------------------------------------- After you created your the file, you should be able to easily create iucvtty instances with systemctl command. To enable and start a iucvtty instance for a particular terminal ID, for example, term1, issue: systemctl enable [email protected] systemctl start [email protected] Note that the "term1" between the "@" and ".service". Such kind of systemd service units are called instance units and the part between is denotes the instance name. That way you can easily enable and start additional iucvtty instances. Just replace the "term1" name with any other terminal name that you want to use. Thanks and kind regards, Hendrik -- Hendrik Brueckner [email protected] | IBM Deutschland Research & Development GmbH Linux on System z Development | Schoenaicher Str. 220, 71032 Boeblingen IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/ ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
