On Sun, Jan 16, 2005, 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.
> +----------------------------------------------------------------------

Ah, ok, my fault. I should know that an empty argument is expanded away
by the shell here. Well, then just use postfix_log_minsize="999G" and
you should be fine.

> 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?

The problem simply is that the empty argument is expanded to nothing by
the shell because there are no quotes around them in rc.postfix.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

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

Reply via email to