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

Página superior

Responder a este mensaje
Autor: Craig Sanders
Fecha:  
A: dmo-discussion
Asunto: Re: error running shared postrotate script for '/var/log/mythtv/*.log '
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
> `----
>
> by
>
> ,----
> | 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.

otherwise the change will replace error messages on systems not running
mythlogserver with error messages on those that are running it.


craig

--
craig sanders <cas@???>