Yes,
In etc/logrotate.d/syslog I do see the commands for restart.
var/log/messages {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/secure {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/maillog {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/spooler {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/boot.log {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/cron {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true
endscript
}
So is it because of this that the logs were refreshed.
Pardon me for my ignorance. Currently I am stuck with some other imp work
which I am unable to stop. I just want to know whether the logs were
refreshed ny the system or wasit done manually. If it is manual then it
would mean that the system has been compromised.
Any tips for me to understand the log rotate would of great help.
Warm Regards,
Kumar
----- Original Message -----
From: "Binand Raj S." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 2:55 PM
Subject: Re: [LIH]syslogd restarts automatically
> On Thu, Feb 27, 2003 at 02:32:30PM +0530, Devdas Bhagat wrote:
> > > Now, check in /etc/logrotate.d/syslog for the command that restarts
syslog.
> > Almost every script in /etc/logrotate.d/ will HUP syslogd to close and
> > reopen file descriptors.
>
> No, only those log files that are managed by syslogd. For example,
> software that manage their own log files (apache, squid) will have
> logrotate scripts that do not HUP the syslogd process.
>
> Binand
>
> --
> Russian Roulette with Unix:
> while :; do kill $RANDOM &> /dev/null && break || sleep 1; done
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help