Partial Summary: /var/adm/messages stops, dissapears.

From: Bruntel, Mitchell L, ALABS <mbruntel_at_att.com>
Date: Thu Sep 18 2003 - 10:56:29 EDT
Thanks to Gene Siepka, who quickly pointed out that sanity checking your files
is ALWAYS helpful!
He noted that I was copying over the messages file in the section where I
re-copied the files

he said:

I believe your script is killing your /var/adm/messages file...
Try changing  the line:

/usr/bin/cp /dev/null /var/adm/messages

to

/usr/bin/cat /dev/null > /var/adm/messages

-Gene

(original problem is that /var/adm/messages dissapears after a few minutes.)



***However-- mitch says (again) that those copies should ONLY
excute if file is NOT found this:

(And instead of re-clobbering my file which should exist, I decided to try >>
(append) instead.

  if [ ! -f /var/adm/messages ]; then
                        /usr/bin/cat /dev/null >> /var/adm/messages
                        /usr/bin/chmod 0644 /var/adm/messages
  fi

More if/when I figure out what is causing it to stop...
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Sep 18 10:56:25 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:23 EST