Looking at the documentation seems like you could use the SIGUSR2 signal *supervisord* will close and reopen the main activity log and all child log files.
http://supervisord.org/running.html#signal-handlers On Tue Dec 16 2014 at 7:18:15 AM Sky Lothar <[email protected]> wrote: > 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 >
_______________________________________________ Supervisor-users mailing list [email protected] https://lists.supervisord.org/mailman/listinfo/supervisor-users
