RE: (RHE4) Logrotate Not Restarting Syslog
- From: "Bohmer, Andre ten" <Andre.tenBohmer@xxxxxx>
- Date: Mon, 30 Jan 2006 20:11:36 +0100
Hi,
> I have 3 new systems running RHE4, all of which are
> experiencing the same
> issue. When the logs are rotated according to the script installed by
> default, syslogd is not be restarted. I have set SELinux to run in
> Permissive mode while I get the servers configured. Below is
> a copy of
> /etc/logrotate.d/syslog
>
> /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
> /var/log/boot.log /var/log/cron {
> sharedscripts
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid 2>
> /dev/null` 2> /dev/null
> || true
> endscript
> }
>
>
> If I run the postrotate command by itself, it works.
> However, it does not
> work when I force the logrotate, as seen below:
>
> [root@host log]# logrotate -f /etc/logrotate.d/syslog
> error: error running shared postrotate script for /var/log/messages
> /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log
> /var/log/cron
>
>
> Does anyone know why this is not working?
Maybe, but I had something similar which was caused because the /tmp partition mounted with noexec.
Cheers,
André
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- RE: (RHE4) Logrotate Not Restarting Syslog
- From: Jason Williard
- Re: (RHE4) Logrotate Not Restarting Syslog
- From: Sean O Sullivan
- RE: (RHE4) Logrotate Not Restarting Syslog
- Prev by Date: Re: Start generating a baseline for system performance
- Next by Date: Re: (RHE4) Logrotate Not Restarting Syslog
- Previous by thread: (RHE4) Logrotate Not Restarting Syslog
- Next by thread: Re: (RHE4) Logrotate Not Restarting Syslog
- Index(es):