F. Even wrote:
Ralf S. Engelschall wrote:

On Sat, Jan 15, 2005, F. Even wrote:


Just add to your <prefix>/etc/rc.conf:

  postfix_log_numfiles="20"
  postfix_log_minsize=""

This way the logs should be rotated every night, independent of
the size and the last 20 logfiles are kept.


I've made these changes to my /cw/etc/rc.conf file and the "daily" cron job has thrown off an error:

-------- Original Message --------
Subject: Cron <[EMAIL PROTECTED]>  [ -f /cw/etc/rc ] && /cw/etc/rc all daily
Date: Sun, 16 Jan 2005 00:00:35 -0600 (CST)

openpkg:rc:WARNING: /cw:postfix:%daily: failed with return code 1
openpkg:rc:NOTICE: output from stdout/stderr is following:
+----------------------------------------------------------------------
| shtool:rotate:Error: invalid argument `-d' to option -s.
+----------------------------------------------------------------------


I'm looking over the rc.postfix file, nothing is jumping out at me. /cw/etc/rc shows -d as "debug" in a few places....


I've never seen this fail before though....(although I've only had postfix running in opkg for a couple days now). Any input?

...and I should add the log never got rotated:

[EMAIL PROTECTED]:/cw/var/postfix/log] ls -lrt
total 809
-rw-r--r--  1 openpkg  openpkg    1116 Jan 15 00:00 postfix.sum.1.bz2
-rw-r--r--  1 openpkg  openpkg    2870 Jan 16 00:00 postfix.sum.0.bz2
-rw-r--r--  1 openpkg  openpkg   19496 Jan 16 00:00 postfix.sum
-rw-r--r--  1 root     openpkg  791907 Jan 16 00:32 postfix.log

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [email protected]

Reply via email to