search for: postrotate

Displaying 20 results from an estimated 86 matches for "postrotate".

2005 Sep 18
1
postrotate error
Running CentOS 4 w/ BlueQuartz on a whitebox, and getting this cron.daily email: /etc/cron.daily/logrotate: error: error running postrotate script Is this a common problem? Thoughts on a typical solution? thnx, Manny
2016 Mar 06
2
logrotate script error
...ize: '100M': No such file size: '100M': No such file And this is the logstash rotate script: #cat /etc/logrotate.d/logstash /var/log/logstash/* { daily rotate 7 copytruncate compress delaycompress missingok notifempty postrotate size 100M /bin/kill -HUP `cat /var/run/logstash.pid 2>/dev/null` 2> /dev/null || true endscript } I can't find the error there. Can I have a suggestion as to what's wrong and how to correct it? Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.ne...
2018 Jan 30
2
Samba 4.7.4 + bind9 DLZ /backend/ dropping delegated domain
Hai, Check the content of : /etc/logrotate.d/named If you see postrotate /etc/init.d/smbd reload > /dev/null endscript Change that to postrotate if [ -d /run/systemd/system ]; then; systemctl -q is-active named && systemctl reload named; else; /etc/init.d/named reload ; fi'; endscript Its something like that, so who pointing.. That does not matt...
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 { weekly missingok rotate 7 postrotate...
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 restart 2> /dev/null...
2018 May 14
3
Logrotate
...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         #postrotate         #        systemctl stop samba &> /dev/null         #        systemctl start samba &> /dev/null         #endscript } -- My problem is, when logrotate is executed, log is rotate but after , don't log messages anymore, log.samba is was"zero"., is need restart...
2005 Dec 19
1
logrotate. Bug or am I blind?
...es 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 postrotate /bin/kill -HUP `cat /var/run/syslog-ng.pid 2> /dev/null` 2> /dev/null || true endscript } [root at syslog-b11 log]# ls -l cisco* -rw-r----- 1 root noc 2816 Dec 19 11:06 cisco_acl.log -rw-r----- 1 root noc 40304 Dec 19 11:07 cisco_debug.log [root at syslog-b11 log]# logrotate...
2010 Jan 15
4
Logrotate in CentOS 5.4 more brutal (to httpd at least) than in 5.3?
...e 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 /sbin/service httpd reload > /dev/null 2>/dev/null || true endscript } CentOS 5.4: /var/log/httpd/*log { missingok notifempty sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript } Isn'...
2017 Nov 17
2
Log rotation and combining...
...riadb/slow_query.log > /var/log/mariadb/error.log > /var/log/mariadb/mariadb.log { > create 640 mysql mysql > daily > minsize 30M > notifempty > rotate 3 > missingok > compress > sharedscripts > postrotate > # # just if mysqld is really running > if test -x /usr/bin/mysqladmin && \ > /usr/bin/mysqladmin ping &>/dev/null > then > /usr/bin/mysqladmin flush-logs > fi &gt...
2016 Mar 06
0
Re: logrotate script error
...No such file > > And this is the logstash rotate script: > > #cat /etc/logrotate.d/logstash > /var/log/logstash/* { > daily > rotate 7 > copytruncate > compress > delaycompress > missingok > notifempty > postrotate > size 100M > /bin/kill -HUP `cat /var/run/logstash.pid 2>/dev/null` 2> /dev/null > || true > endscript > } > > I can't find the error there. Can I have a suggestion as to what's wrong > and how to correct it? Multiple errors here, first h...
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 postrotate pkill -SIGHUP -f clamd.clamsmtp &...
2017 Nov 16
2
Log rotation and combining...
...there a reason it shouldn?t be located in the /var/log directory with the maillog? 2. Separate from above, if I create a new logrotate script example as follows: # dovecot SIGUSR1: Re-opens the log files. /home/vmail/dovecot-deliver.log { missingok notifempty delaycompress sharedscripts postrotate /bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> /dev/null || true endscript } I get the following error only when cron tries to run it: /etc/cron.daily/logrotate: error: stat of /home/vmail/dovecot-deliver.log failed: Permission denied Owner on the log are vmail:vma...
2018 May 14
1
Logrotate
...pt/samba/var/log.samba >> >> { >>   rotate 10 >>         daily >>         compress >>         dateext >>         size 100M >>         nomail >>         missingok >>         notifempty >>         create 644 root root >>         #postrotate >>         #        systemctl stop samba &> /dev/null >>         #        systemctl start samba &> /dev/null >>         #endscript >> } >> >> -- >> >> >> My problem is, when logrotate is executed, log is rotate but after , >&gt...
2009 Nov 09
3
Sort logfiles at rotation time
Hi, I want to be certain that my apache and varnish logfiles are in strict date order when rotated. I'd like to run a sort command against them before they're compressed. I've had a look at the logrotate man page, and it looks like I can use a postrotate/endscript to do this. However, I can see any reference in the documentation for how to operate on the file. All the examples seem to take the form of restarting something, or running some other standalone script. What I want to do is run a sort command against the newly rotated file - but how do...
2018 Jun 15
2
After logrotation Dovecot still writes to old log file
Thanks man You suggesting the same as https://wiki2.dovecot.org/Logging says? postrotate kill -s 0 `cat /var/run/dovecot/master.pid` || kill -s USR1 `cat /var/run/dovecot/master.pid` endscript Well, I already tried that and didn't work. Hence my guess that it's something else. On 15/06/18 13:19, Stephen Satchell wrote: > From the manpage: > SIGNALS > Dove...
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 "endrotate" in logrotate's (logrotate-3.2-1) man pages; the man e...
2017 Nov 17
2
Log rotation and combining...
...log/mariadb/mariadb.log { >>> create 640 mysql mysql >>> daily >>> minsize 30M >>> notifempty >>> rotate 3 >>> missingok >>> compress >>> sharedscripts >>> postrotate >>> # # just if mysqld is really running >>> if test -x /usr/bin/mysqladmin && \ >>> /usr/bin/mysqladmin ping &>/dev/null >>> then >>> /usr/bin/mysqladmin fl...
2013 Apr 26
3
Problem with tinc.log and logrotate.
Hi everyone again. I run tinc with the following command: /usr/sbin/tincd -d1 --logfile=/var/log/tinc.log That creates the file "/var/log/tinc.log" correctly and reports into it. Well, because I want to have a log file by day, I have created a logrotate file (/etc/logrotate.d/tinc) that contains the following lines: ----------------------------------------- /var/log/tinc.log {
2018 Jun 14
2
After logrotation Dovecot still writes to old log file
...ms to write to /var/log/dovecot.log.1 instead of a recently created /var/log/dovecot.log Here my logrotate config for Dovecot: /var/log/dovecot.log { ??????? su root syslog ??????? rotate 7 ??????? missingok ??????? copytruncate ??????? create 666 root syslog ??????? sharedscripts ??????? postrotate ??????????? doveadm log reopen ??????? endscript } Doveadm should reopen it but no, still writes to old log file. Not sure, maybe it's someone else, not dovecot, writing to the log file? And here the versions: # 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.21 (...
2018 Nov 11
0
CentOS 6: Logrotate / selinux problem
...ttern: /var/log/imapd.log /var/log/auth.log weekly (4 rotations) empty log files are rotated, old logs are removed considering log /var/log/imapd.log log /var/log/imapd.log does not exist -- skipping considering log /var/log/auth.log log /var/log/auth.log does not exist -- skipping not running postrotate script, since no logs were rotated rotating pattern: /var/log/dracut.log 1048576 bytes (4 rotations) empty log files are not rotated, old logs are removed considering log /var/log/dracut.log log does not need rotating rotating pattern: /var/log/httpd/*log weekly (4 rotations) empty log files...