Displaying 20 results from an estimated 11000 matches similar to: "logrotate with only one SIGHUP for two log paths"
2018 May 14
1
Logrotate
Am 14.05.2018 um 21:08 schrieb Reindl Harald via samba:
> Am 14.05.2018 um 20:56 schrieb Carlos via samba:
>> /opt/samba/var/log.samba
>>
>> {
>> rotate 10
>> daily
>> compress
>> dateext
>> size 100M
>> nomail
>> missingok
>> notifempty
>> create 644 root
2016 Mar 06
0
Re: logrotate script error
On Sun, 6 Mar 2016 04:34, Tim Dunphy <bluethundr at ...> wrote:
> Hey guys,
>
> I'm trying to rotate a logstash log that can grow pretty large. 3.4GB last
> I saw!
>
> And that's because the logrotate script I came up with didn't work.
>
> The error I get on a syntax check is this:
>
> #logrotate -f logstash
> size: '100M': No such file
2010 Jan 15
4
Logrotate in CentOS 5.4 more brutal (to httpd at least) than in 5.3?
I've just updated a few CentOS 5.3 servers to 5.4. One of them were a Apache Webserver. Doing a diff/check on the new ".rpmnew" config files that are made, I saw that the logrotate command for apache was changed. In 5.3 it did a reload, but in 5.4 it does a hard kill:
CentOS 5.3:
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
2017 May 02
1
logrotate failed ... (CentOS 6.9)
On 01.05.2017 13:15, James Pearson wrote:
> Walter.H at mathemainzel.info:
>> I get regularily such a mail
>>
>> <mail>
>> Anacron job 'cron.daily' on ....
>>
>> /etc/cron.daily/logrotate:
>>
>> error: error running non-shared postrotate script for
>> /var/log/clamd.clamsmtp/clamsmtpd.log of
>>
2007 Mar 11
2
logrotate, syslog, and chsh
I'm noticing that logrotate's default configuration for rotating /var/
log/secure and /var/log/messages partially fails if root's shell is
set to /bin/tcsh (via chsh). (Running on CentOS 4.4;
logrotate-3.7.1-5.RHEL4).
What seems to be happening is that the logrotate.d/syslog postrotate
command runs:
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
1999 Jul 10
5
2.0.4b: logrotate problems with rh60
The 2.04b rpm for rh60 ships with and installs a config file for logrotate
(the samba.log file in the packaging/RedHat section).
=====
/var/log/samba/log.nmb {
postrotate
/usr/bin/killall -HUP nmbd
endrotate
}
/var/log/samba/log.smb {
postrotate
/usr/bin/killall -HUP smbd
endrotate
}
=====
1)
I think that the use of "endrotate" is wrong.
There is no
2020 May 25
1
log.samba missing rotation
Can you try this and adjust the path's in it.
#/etc/logrotate.d/samba
/var/log/samba/log.smbd {
weekly
missingok
rotate 7
postrotate
[ ! -x /usr/bin/smbcontrol ] || [ ! -f /run/samba/smbd.pid ] || /usr/bin/smbcontrol smbd reload-config
endscript
compress
delaycompress
notifempty
}
/var/log/samba/log.nmbd {
2017 May 01
2
logrotate failed ... (CentOS 6.9)
I get regularily such a mail
<mail>
Anacron job 'cron.daily' on ....
/etc/cron.daily/logrotate:
error: error running non-shared postrotate script for
/var/log/clamd.clamsmtp/clamsmtpd.log of
'/var/log/clamd.clamsmtp/clamsmtpd.log '
</mail>
content of /etc/logrotate.d/clamsmtp
/var/log/clamd.clamsmtp/clamsmtpd.log {
monthly
notifempty
missingok
2018 Nov 11
0
CentOS 6: Logrotate / selinux problem
Ever since a recent power failure I have been getting a Logrotate error. My
machine is on a UPS -- it shutdown cleanly, but I suspect that its BIOS/RTC
battery is dead, since the machine came up thinking it was 1982 :-(. I reset
the clock and everything is fine, *except* I had to delete Logrotate's state
files (which had bad dates). But now Logrotate is raising the error:
error: error
2016 Mar 06
2
logrotate script error
Hey guys,
I'm trying to rotate a logstash log that can grow pretty large. 3.4GB last
I saw!
And that's because the logrotate script I came up with didn't work.
The error I get on a syntax check is this:
#logrotate -f logstash
size: '100M': No such file
size: '100M': No such file
size: '100M': No such file
size: '100M': No such file
size:
2005 May 31
0
ULOG logging may fail on some ulogd/logrotate configurations
FYI.
I have not been able to determine 100% that logrotate does this, but ulogd
appears to stop logging whenever logrotate runs. So far, the only obvious
commonality that I see is that logrotate ran and that the
/var/log/ulogd/ulogd.syslogemu is completely empty until I restart ulogd.
I have proven that the logging is broken by manually performing a network
operation that Shorewall normally
2018 May 14
3
Logrotate
Hi!
I have one problem with my logrotate.
Samba version:
Samba 4 7.7 (compilated)
S.O.:
Ubuntu 14.04 /16.04
Samba logs file:
/opt/samba/var/
Logrotate File:
cat /etc/logrotate.d/samba
--
/opt/samba/var/log.samba
{
rotate 10
daily
compress
dateext
size 100M
nomail
missingok
notifempty
create 644 root root
2005 Dec 19
1
logrotate. Bug or am I blind?
Hello!
I having a problem with the permissions of some of my logfiles.
It seems that when the files are rotated, the user/group is root root and the permissions are rw for root only.
more info hereunder:
The strange thing is that sometimes it works for one file...
/var/log/cisco_acl.log /var/log/cisco_debug.log {
rotate 1
notifempty
#daily
size 1k
create 0640 root noc
2017 Mar 19
2
Permission denied when logrotating dovecot.log
Hello guys
Having headaches here how to make logrotation for dovecot log files
work. Having permission issues:
michael.heuberger at xxx /e/l/daily ??? sudo logrotate -fv
dovecot.daily
?
reading config file dovecot.daily
Handling 1 logs
rotating
2017 Nov 17
0
Log rotation and combining...
Hi,
Your crontab should normally mail you error output. But you can also run
the logrotate command manually, in verbose mode.
Kind regards,
Tom
On 17-11-17 03:35, SH Development wrote:
> That doesn?t seem to work either. Where do I find logs for log rotation to see the reason it failed?
>
> Ethon
>
>
>
>> On Nov 16, 2017, at 7:53 PM, Bill Shirley <bill at
2017 Nov 18
0
Log rotation and combining...
HI,
Do you have selinux activated? Maybe the context for logrotate does not
allow accessing files under /home, and the root cli is not troubled by
such a limitation? Why are you storing log files under /home anyway?
Note: I don't use any OS with selinux, so can't really help with fixing
this an issue.
Regards,
Tom
On 17-11-17 22:42, SH Development wrote:
> So, the question is, why
2010 Mar 15
1
log rotation not working
Hello,
I've got a Centos 5.4 box that is not rotating it's mail logs. I just
found out about this, the file is considerably large. I've included my
log rotation configs if anyone has any suggestions i'm open to them.
Thanks.
Dave.
/etc/rsyslog.conf:
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*
2017 Nov 17
2
Log rotation and combining...
That doesn?t seem to work either. Where do I find logs for log rotation to see the reason it failed?
Ethon
> On Nov 16, 2017, at 7:53 PM, Bill Shirley <bill at KnoxvilleChristian.org <mailto:bill at KnoxvilleChristian.org>> wrote:
>
> I believe you need a 'create' statement to set the permissions. Here
> is an example for mariadb:
>
2008 Jul 08
0
Problem with logrotate and compress
Hi I am using Centos 5.1 and I have a weird problem with squid logs
rotation. I have the file squid as follow in /etc/logrotate.d:
Recently I reduce size parameter.
/var/log/squid/access.log {
weekly
missingok
rotate 10
compress
create 0660 squid squid
missingok
size 200M
postrotate
/usr/sbin/squid -k rotate
endscript
}
/var/log/squid/cache.log {
weekly
2010 Dec 27
2
logrotate.d - reload vs restart
Looking at some of the stuff in /etc/logrotate.d, I see entries like this in
some of the configuration files:
postrotate
/sbin/service privoxy reload 2> /dev/null || true
>From the commandline, that doesn't work:
# /sbin/service privoxy reload 2> /dev/null || true
Usage: /etc/init.d/privoxy {start|stop|restart}
Changing reload to restart does work:
]# /sbin/service privoxy