On 2013-04-30 14:29, John Stewart wrote:
On 13-04-30 12:34 AM, Murray Fraser wrote:
Yes tmpwatch is installed on our Oracle build, I am not sure how often
it is configured to run, but our servers will barely last an uptime of
12 hours before they stop creating new GDM sessions. Is there a way to
get tmpwatch to exclude a directory from tmpwatch or does it need to
be disabled completely.
12 hours is too soon for it to be related to tmpwatch.  I'm not aware of
a way to exclude a directory from tmpwatch so we just disable it
completely.  Going to a newer minor release of the OS can bring tmpwatch
back so we actually have Nagios configured to tell us when that has
happened.

Not that this is a very SRSS question, but rather one of usual linux
administration and quick to answer :)

On RedHat and clone (CentOS) systems I see the /etc/cron.daily/tmpwatch file to configure a daily task of the tmpwatch:

/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix \
        -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp

/usr/sbin/tmpwatch 720 /var/tmp

for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
    if [ -d "$d" ]; then
        /usr/sbin/tmpwatch -f 720 "$d"
    fi
done



The active examples in the file (above) show several ways to pick or
exclude target paths subject to tmpwatch or exempt from its cleaning,
as well as set object expiration ages in hours (10-30 days above).

A manpage also exists to detail the options.

HTH,
//Jim Klimov

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to