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

Top Page

Reply to this message
Author: Craig Sanders
Date:  
To: dmo-discussion
Subject: 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@???>