Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
2.  Configuring Session Manager Additional Session Startup Customizations To Execute Additional Commands at Session Startup  Previous   Contents   Next 
   
 

To Execute Additional Commands at Logout

A companion file to sessionetc is sessionexit. Use sessionexit to perform some operation at session exit that is not handled by Session Manager.

  • Create the file HomeDirectory/.dt/sessions/sessionexit containing the commands.

Like sessionetc, this file is usually a script with execute permission.

To Recover a Session from Backup

When Session Manager saves a session, the session information is stored in the HomeDirectory/.dt/sessions directory or in the HomeDirectory/.dt/display directory if using a display-specific session. In these directories, Session Manager creates a subdirectory named current or home to store information for the respective current or home session. Before the session information is stored, Session Manager makes a backup of the prior session with that name and stores it in current.old or home.old.

  1. Log in using the Failsafe Session or Command Line Login from the login screen.

  2. Copy the backup session directory to the active name. For example, to recover the backup home session:

    	cp -r HomeDirectory/.dt/sessions/home.old \
     	HomeDirectory/.dt/sessions/home

    Display-specific sessions can be recovered in the same manner.

To Investigate Session Startup Problems

  • Check the file HomeDirectory/.dt/startlog.

Session Manager logs each user's session startup progress in this file.

Session Manager Files and Directories

  • /usr/dt/bin/Xsession

  • /usr/dt/config/Xsession.d/*

  • /usr/dt/bin/dtsession

  • /usr/dt/bin/dtsession_res

  • HomeDirectory/.dt/sessions/current

  • HomeDirectory/.dt/sessions/home

  • HomeDirectory/.dt/display/current

  • HomeDirectory/.dt/display/home

 
 
 
  Previous   Contents   Next