By default, the /etc/cron.daily/tmpwatch
file may delete
directories and files required for existing user sessions to continue to work. This issue can
result in the Waiting for Session (26) icon.
To fix this issue, you can either disable the tmpwatch
file or
update the tmpwatch
file to prevent the required session directories
and files from being deleted. If you disable the the tmpwatch
file, be
aware that you may need another way to purge the contents in the /tmp
directory.
Both solutions require you to become superuser on the Sun Ray server.
tmpwatch
File# chmod a-x /etc/cron.daily/tmpwatch
tmpwatch
FileEdit the /etc/cron.daily/tmpwatch
file. Add the s
flag to the flags
variable and add three new options for the
tmpwatch command (both changes are highlighted in bold):
#! /bin/sh flags=-umcs # Added s for SUNWut
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \-x /tmp/SUNWut -X '/tmp/orbit-*' -X '/tmp/pulse-*' \ # Added options for SUNWut
-X '/tmp/hsperfdata_*' 10d /tmp /usr/sbin/tmpwatch "$flags" 30d /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 30d "$d" fi done