Re: error running shared postrotate script for '/var/log/myt…

Top Page

Reply to this message
Author: Martin Gallant
Date:  
To: dmo-discussion
Subject: Re: error running shared postrotate script for '/var/log/mythtv/*.log '
On Tue, Aug 27, 2013 at 2:50 PM, Christian Marillat <marillat@???> wrote:

> ,----
> | if [ -z pidof mythlogserver ]; then
> |    kill -HUP mythlogserver
> | fi
> `----


I think this needs to be (Note quotes)

[ -z "pidof mythlogserver" ];

Otherwise, I get the following error in my email

/etc/cron.daily/logrotate:
logrotate_script: 2: [: pidof: unexpected operator

Sorry for not catching this earlier, but this stanza does not run
unless logs were actually rotated.

--
Marty