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

Página superior

Responder a este mensaje
Autor: Christian Marillat
Fecha:  
A: dmo-discussion
Asunto: 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