[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File size check and exec problems
From: |
Christian Hopp |
Subject: |
Re: File size check and exec problems |
Date: |
Fri, 17 Sep 2004 13:54:21 +0200 (CEST) |
On Fri, 17 Sep 2004, Andy wrote:
> Hi,
>
> I'm being driven insane by a problem with using exec after a file size check.
> I have the following entry in my /etc/monitrc:
>
> check file asterisk_debug with path /var/log/asterisk/debug
> if size > 1 GB then
> exec "/usr/sbin/asteriskrotate"
>
> I've also tried using
>
> exec "/bin/bash -c '/usr/sbin/asteriskrotate'"
>
(...)
> address@hidden root]# monit -vvvv reload
> monit: Debug: Adding credentials for user 'andy'.
> AssertException: at p.y:1897
> aborting..
> Aborted
>
>
> If I simply change the exec "/usr/sbin/asteriskrotate" to alert monit is
> happy (but I'm not :P )
>
> am I being dumb and missing the obvious?
Nope, its a bug. I just fixed in the current CVS version. Thanks for the
bug-report!
Christian
--
Christian Hopp email: address@hidden
Institut für Elektrische Informationstechnik fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf. fax: +49-5323-72-3197
pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/