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

トップ ページ

このメッセージに返信
著者: Martin Gallant
日付:  
To: dmo-discussion
題目: 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