try this?

#!/bin/bash
cp xxx.log
truncate --size=0 xxx.log

On 2014年12月5日周五 上午4:59 Yury Sobolev <[email protected]> wrote:

> Hi,
>
> I am trying to get supervisor to rotate logs daily. There does not appear
> to be an option to do so. I could run logrotate, but I am not sure how well
> that would work. I would like log files to be unlimited in size, but split
> by day. If logrotate rotates the log, supervisor will still have its
> descriptor pointing at the old file. Can I force supervisor to reopen a
> log? Or, is there a more elegant solution?
>
> -Yury
>
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> https://lists.supervisord.org/mailman/listinfo/supervisor-users
>
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to