Re: logrotate errors for mythlogserver with frontend only

Page principale

Répondre à ce message
Auteur: Christian Marillat
Date:  
À: dmo-discussion
Sujet: 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