Re: logrotate errors for mythlogserver with frontend only

トップ ページ

このメッセージに返信
著者: Christian Marillat
日付:  
To: dmo-discussion
題目: 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