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)

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=iucvtty hvc1
#Documentation=man:agetty(8) man:systemd-getty-generator(8)
#Documentation=http://0pointer.de/blog/projects/serial-console.html
#After=systemd-user-sessions.service plymouth-quit-wait.service

[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/usr/bin/iucvtty hvc1 -- /bin/login
Type=idle
Restart=always
RestartSec=0
#UtmpIdentifier=%I  <- have tried remove comment for this line, and all TTY 
lines as well.
TTYPath=/dev/hvc1    <- have tried:  /dev/pts   /dev/pts2   /dev/%I   /dev/hvc
#TTYReset=yes
#TTYVHangup=yes
#TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= 
LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= 
LC_MEASUREMENT= LC_IDENTIFICATION=

[Install]
WantedBy=sysinit.target


Have experimented with some variations of the ExecStart cmd all with same 
result.
The text: using pts device: /d...s/0  is somewhat disturbing.


A start cmd can look like this:
iucvtty.service - iucvtty hvc1
   Loaded: loaded (/etc/systemd/system/iucvtty.service; disabled)
   Active: active (running) since Thu 2014-11-13 14:52:22 CET; 5s ago
 Main PID: 5030 (iucvtty)
   CGroup: /system.slice/iucvtty.service
           └─5030 /usr/bin/iucvtty hvc1 -- /bin/login

Nov 13 14:52:22 zlin0103.got.volvo.net systemd[1]: Started iucvtty hvc1.
Nov 13 14:52:22 zlin0103.got.volvo.net iucvtty[5030]: Listening on terminal ID: 
hvc1, using pts device: /d...s/0
Hint: Some lines were ellipsized, use -l to show in full.
 ps -ef|grep iucvtty
root      5030     1  0 14:52 ?        00:00:00 /usr/bin/iucvtty hvc1 -- 
/bin/login
root      5034  4889  0 14:52 pts/2    00:00:00 grep --color=auto iucvtty


If I just issues the manual start (first one while hvc1 still running:
[root@zlin0103# /usr/bin/iucvtty hvc1 -- /bin/login
iucvtty: Binding the AF_IUCV socket failed: Address already in use
[root@zlin0103# /usr/bin/iucvtty hvc2 -- /bin/login

It works fine to login via my TerminalServer
Here is both processes:
root      5038  4889  0 14:57 pts/2    00:00:00 /usr/bin/iucvtty hvc2 -- 
/bin/login
root      5041     1  0 14:57 ?        00:00:00 /usr/bin/iucvtty hvc1 -- 
/bin/login

login via hvc2 works fine, that's the manual start of it that works.

Anyone have a clue here or have solved this ?

The trick seems to be having that pts/n to be used, but how do I fix that ?

BR /Tore Agblad

Volvo IT.

----------------------------------------------------------------------
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/

Reply via email to