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

Top Page

Reply to this message
Author: Christian Marillat
Date:  
To: dmo-discussion
Subject: Re: error running shared postrotate script for '/var/log/mythtv/*.log '
Craig Sanders <cas@???> writes:

> On Tue, Aug 27, 2013 at 09:50:33PM +0200, Christian Marillat wrote:
>> Apparently we have this error if mythlogserver isn't running.
>> Could you replace in /etc/logrotate.d/mythlogserver
>>
>> ,----
>> | pkill -HUP mythlogserver
>> `----


[...]

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

>
> the pidof test makes sense, but that kill should still be a pkill - kill
> can't kill a process by name, only by PID.


Yes we use pkill. Bad copy/paste here.

Christian