The Sequence of Events When CDE Starts


The following section is a blow-by-blow account of what happens when a user logs into CDE. In this particular account, assume a distributed topology like a diskless cluster. The account begins with the boot of the hub system and nodes in step 1. By step 4, X servers are running on each node and login screens are being displayed. By step 6, the user is logged in. By step 11, the session manager is busy re-creating the user 's session.

  1. The dtlogin executable is started as part of the init process that occurs during the system boot sequence on the hub machine and each cluster node.

  2. dtlogin reads /usr/dt/config/Xconfig to get a list of resources with which to configure the login process. This is where dtlogin first learns about files such as Xaccess, Xservers, Xresources, Xstartup, Xsession , and Xreset and gets the values of a number of appearance and behavior resources.

  3. dtlogin reads two files in /usr/dt/config :

    • Xservers or the file identified by the Dtlogin*servers resource setting in Xconfig .

    • Xresources or the file identified by the Dtlogin*resources resource setting in Xconfig .

  4. dtlogin starts an X server and a child dtlogin for each local display.

  5. Each child dtlogin invokes dtgreet , the login screen.

  6. When a login and password are validated , a child dtlogin sets certain environment variables to default values.

  7. The child dtlogin runs /usr/dt/config/Xstartup .

  8. The child dtlogin runs /usr/dt/config/Xsession .

  9. Xsession runs dthello , the copyright screen.

  10. Xsession reads $HOME/.dtprofile , setting any additional environment variables or overwriting those set previously by dtlogin .

  11. The child dtlogin invokes the session manager, dtsession .

  12. dtsession restores the appropriate session. For example, to restore the current session, dtsession reads dt.resources and dt.session in $HOME/.dt/sessions/current .

At logout, the reverse happens. The session is saved and dtlogin runs /usr/dt/config/Xreset . After Xreset completes, dtlogin again displays the login screen, as in step 4.



HP-UX 11i Systems Administration Handbook and Toolkit
HP-UX 11i Systems Administration Handbook and Toolkit (2nd Edition)
ISBN: 0131018833
EAN: 2147483647
Year: 2003
Pages: 301

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net