[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[McIDAS #BUT-351432]: How do I keep McIDAS-XCD message logs out of /var/log/messages?

Hi Gilbert,

> I am seeing this in /var/log/messages:
> Sep 23 17:18:01 weather xinetd[2632]: EXIT: mcidas status=0 pid=23953
> duration=0(sec)
> Every minute with a process happening. This is normal and expected,

Interesting.  I had never looked for these messages in /var/log/messages...

> but
> I'd rather put it in a file in /home/ldm/logs. How can I do this?

A quick check of the man page for xinetd on weather shows that there is
a flag that should be able to be used to specify where logging will

       -filelog logfile
              xinetd-produced messages will be placed in the specified file.
              Messages  are  always  appended to the file.  If the file does
              not exist, it will be created.  This option is ineffective  in
              debug  mode since all relevant messages are sent to the termi-

I would assume that one would have to modify the /etc/init.d/xinetd script
to include the use of the '-filelog' flag.

Please remember that the log file that will be written will likely be
owned by 'root'.  This may or may not cause problems for you down the road.

> Thanks and take care. Oh, Weather.admin.niu.edu was down this past
> Friday-Saturday when a storm blew through here and took out the power,
> resulting in scrambled hard drive files. After a reboot and an
> automatic/automagic file system check, all is well now.

OK, thanks for the heads-up.


Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
Unidata HomePage                       http://www.unidata.ucar.edu

Ticket Details
Ticket ID: BUT-351432
Department: Support McIDAS
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.