Re: logrotate errors for mythlogserver with frontend only

Página superior

Responder a este mensaje
Autor: Christian Marillat
Fecha:  
A: dmo-discussion
Asunto: Re: logrotate errors for mythlogserver with frontend only
Dom <toyer@???> writes:

[...]

> It looks like mythlogserver is shutting itself down when I exit the
> frontend, rather than aborting.


After a google search the daemon stop if no mythtv process are
running. Strange feature...

Then the best is to use pkill instead of killall to kill the
mythlogserver process. Normally pkill doesn't return an error if the
process isn't running. What do you think ?

,----
| /var/log/mythtv/*.log {
|     daily
|     rotate 7
|     notifempty
|     delaycompress
|     sharedscripts
|     compress
|     postrotate
|         pkill -HUP mythlogserver
|     endscript
|     su mythtv mythtv
| }

`----

Christian