Paul Jarc | 23 Sep 18:28 2003

Re: readproctitle service errors

<help <at> codefit.com> wrote:
> [root <at> www env]# svstat /service/*/log
> /service/dnscache/log: up (pid 8251) 216175 seconds
> /service/pop3d/log: up (pid 1015) 217493 seconds
> /service/qmail/log: up (pid 1006) 217493 seconds
> /service/smtpd/log: up (pid 1012) 217493 seconds
> /service/tinydns/log: up (pid 8297) 216165 seconds

This looks fine.  Apparently the error has already been fixed.

> I guess the next logical question is, is there a way to
> flush and reset the readproctile log?

Create a service with no logger and with a run script like this:
#!/bin/sh -e
echo | tr -c . .
exec sleep 60

That will rotate readproctitle's log by one dot every minute.

paul


Gmane