Chapter 8. Installing and configuring the golden image 151
8.2.4 Configuring the VNC server
Configure the VNC server the same way as you did on the cloner. Perform the same steps
described in 7.2.5, “Configuring the VNC server” on page 130.
8.2.5 Setting system to halt on SIGNAL SHUTDOWN
Again, RHEL 6 reboots when a Ctrl-Alt-Del key sequence is pressed. This key sequence is
simulated by z/VM when a SIGNAL SHUTDOWN command is issued. Rather than rebooting,
you want your system to halt (shutdown).
Edit /etc/init/control-alt-delete.conf and change shutdown -r (reboot) to shutdown -h
(halt):
# cd /etc/init
# vi control-alt-delete.conf
# control-alt-delete - emergency keypress handling
#
# This task is run whenever the Control-Alt-Delete key combination is
# pressed. Usually used to shut down the machine.
start on control-alt-delete
exec /sbin/shutdown -h now "Control-Alt-Delete pressed"
This change will be processed when the system is rebooted.
8.2.6 Setting the system to log off when Linux is shut down
When Linux is shut down, the default is for the virtual machine to remain logged on even
though it is not running an operating system. It is more convenient for the user ID to be
logged off, both at z/VM SHUTDOWN time and to obtain a refreshed 3270 emulator session.
Edit the /etc/rc.d/rc.local file and add two lines at the end as follows:
# cd /etc/rc.d
# vi rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
chshut halt vmcmd logoff
chshut poff vmcmd logoff
The z/VM user ID should now be logged off when you halt or power off Linux.
Komentarze do niniejszej Instrukcji