Hi Fabio,

Hello Stuart,

* 2008-05-02 15:41, Stuart Rowan wrote:
Please add a SIGNALS section the the dovecot manpage

I was trying to create a logrotate.d/dovecot file for my system (perhaps
this should be done by the package anyway?) and wanted to find out how to
get the daemon to reopen its logfiles. (I was previously just restarting
dovecot)

I'll add a SIGNALS section with the next upload, thanks for your
suggestion;
excellent news -- thanks.

the package doesn't ship a logrotate script because in the
default configuration dovecot doesn't use dedicated log files.

That makes perfect sense (which is why I didn't file it as a bug).

I don't know whether the below would be useful in README.Debian or elsewhere but, as I've just done it, I thought I'd write it up and leave that choice to you :-)

### snip ###
If you'd like to log directly to files rather than via syslog, the following may help:

In /etc/dovecot/dovecot.conf set the following variables:
log_path: /var/log/dovecot/error.log
info_log_path: /var/log/dovecot/info.log

Create the dovecot log directory and set the ownership and permissions appropriately

mkdir /var/log/dovecot
chown dovecot.adm /var/log/dovecot chmod 2755 /var/log/dovecot

# Save this as /etc/logrotate.d/dovecot
/var/log/dovecot/error.log /var/log/dovecot/info.log {
        daily
        missingok
        rotate 60
        compress
        delaycompress
        notifempty
        create 640 dovecot adm
        sharedscripts
        postrotate
                if [ -f /var/run/dovecot/master.pid ]; then
                        /bin/kill -USR1 `cat /var/run/dovecot/master.pid`
                fi
        endscript
}
### snip ###

Cheers,
Stu.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to