Operating System - HP-UX
1837260 Members
2372 Online
110115 Solutions
New Discussion

Mail.log and Syslog.log Problem

 
sriharikumar_1
Contributor

Mail.log and Syslog.log Problem

Hi,

In our HP 9000 L1000 Server running HP-UX 11.00, we are using sendmail 8.11.0. In that often the /var/adm/syslog/mail.log and /var/adm/syslog/syslog.log are not getting logged, even inspite of the syslog daemon running properly.

This is getting solved only by stopping and starting the syslogd again.

This had happened in 4 of our servers for 3 to 4 times within a week's time.

Can anyone tell why this is happening? and how to overcome this problem?

Thanks and Regards.
3 REPLIES 3
Pedro Sousa
Honored Contributor

Re: Mail.log and Syslog.log Problem

I do not know this problem, but I advise you to run the inetd daemon with the -l option. This will log every single thing that happens on the system to syslog. Maybe then you can do some more troubleshooting.

good luck.
Carlos Fernandez Riera
Honored Contributor

Re: Mail.log and Syslog.log Problem

If you are removing this files w/o stop the syslog daemon , the files will be not recreated and this is the cause.

You can send HUP signal to force syslogd reconfiguration after remove them.

# kill HUP `cat /var/run/syslog.pid `

See man syslogd.



unsupported
Ralf Hildebrandt
Valued Contributor

Re: Mail.log and Syslog.log Problem

inetd has NOTHING to do with logging, at least not for sendmail. If you want to "rotate" logfiles (if they get too big for example), it's most easily done like this:

% cp log log.1
% cp /dev/null log

With this, there's no need to re-start syslogd, since the filehandle for log still exists (but the file is empty again).
Postfix/BIND/Security/IDS/Scanner, you name it...