From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 30515 invoked from network); 18 Oct 2021 09:12:33 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 18 Oct 2021 09:12:33 -0000 Received: from mail-pf1-f182.google.com ([209.85.210.182]) by 4ess; Sun Oct 17 09:58:18 -0400 2021 Received: by mail-pf1-f182.google.com with SMTP id v8so8523644pfu.11 for <9front@9front.org>; Sun, 17 Oct 2021 06:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=syV53Rp3h0vZct8LI56pLvWY1JS64aM4qaR5Uy5bEME=; b=F7fwQWFV5xhhJM82RupMUGEneOTkyA5JrF1wUnfKoZOsD9gR3QJcLMgLf5NU5kV404 3ZBe7gxTjTNL5WbW9R282m9UjW/w2wJY9kfewey8cLX97XFT5b2+xEM2hVaawlJ3Z2l/ 9QyOXPF4u0Q09AI7KreQhKnSXcq5k+Fd6bWJZQWNuSowtjsOKHpOIoVqsi7g6pH48Mm6 2nyOk4M5qxoavEuC9vVGNZoqCBuGTEM6BqfihqmyK2PKe17XQ+ZY27qjHHShR6UZh8Je jMRfu6UZcjrIs6yWfhBSXPYiN7ZbkiZ1dRcCsh7bGJ46tciga2wj9R+Y0J+l2jQOGSNP 28wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=syV53Rp3h0vZct8LI56pLvWY1JS64aM4qaR5Uy5bEME=; b=dJ+zX13cE5ntOBv4iW+Qdy3G1cphsaVe/9u6N7pkysovMXll5Ook5G3ipyFm5ZnMZr A/qqzaT376kEIafvEZlJWcLkb99hcMn11hhYFgmc3A6bu6cVoA5X2pqqsSXEtvhI2oya 4iV3KGb7M/iT/J4+eInmyFKVFvoqAtgH5/8MFDNc+N6nCy0XF88HF6YZ0erZ+mcIEsHw 0a5mcMIpDllN1UsltTsf7n9N4a8FwLDrfvMaqHXrSDE46vScvjrPp5ZhJ8Ev8KaG9/NI VQhsQHdGcJpiz6Rc55e2R5HWrEbmTmdUwR7+0x8rYdwzqGOH94FMpy36PkYEt5F6+8pU gs8A== X-Gm-Message-State: AOAM532q5TY0v2hI6eUlomQePQZz08Oc4UfStjxN3O81AqUtxJk35119 ts2Fh64eJAUfpM/SAUHAGTjyYuURHdsgHF+HZhdSeq2T X-Google-Smtp-Source: ABdhPJzB7VeP5UZ6oH1jWzbs13F+BrmGMdQNUIfSvhQNy9+ETiXBAaRTZN7F5ivEIaQ5MUhKVqH2ew1ph5CMAMHFzdc= X-Received: by 2002:a67:ea0b:: with SMTP id g11mr23850805vso.2.1634478619736; Sun, 17 Oct 2021 06:50:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a59:9345:0:b0:238:4fd5:e324 with HTTP; Sun, 17 Oct 2021 06:50:19 -0700 (PDT) In-Reply-To: References: From: hiro <23hiro@gmail.com> Date: Sun, 17 Oct 2021 15:50:19 +0200 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: ISO-certified agile realtime backend Subject: [9front] =?UTF-8?B?UmU6IFs5ZnJvbnRdIFJlOiBbOWZyb250XSBEZWFsaW5nIHdpdGggbG9nIGZpbGVz4oCm?= Reply-To: 9front@9front.org Precedence: bulk what happens to a process that is still having file A open and is gonna write() again to it after you renamed A into B? On 10/17/21, Rodrigo G. L=C3=B3pez wrote: > as others mentioned, chmod +t and a cron task with your own rotation woul= d > do it. if you want them stored along with the worm, with cwfs dumps usual= ly > happen at 5am, so you could compress, move and truncate them, just before > this happens, and with whatever resolution you want=E2=80=94 daily, weekl= y, etc.=E2=80=94for > the .log.gz files. > > i used to do this on an rc-httpd serving machine, but i no longer keep an= y > logs. > > something like: > #!/bin/rc > > mv /sys/log/^(www www.wip) >>/sys/log/www > chmod +t /sys/log/www > /sys/log/archive/www.`{date -n}.gz > rm /sys/log/www.wip > > > -rodri > > On October 16, 2021 8:06:24 PM UTC, igor@9lab.org wrote: >>What is the Plan9 way of dealing with growing log files such as >>/sys/log/www and others? Is there something similar to multilog=C2=B9 or >>logrotate=C2=B2? >> >>Thanks in advance for any advice. >> >>Cheers, >>Igor >> >>=C2=B9=E2=80=A6(https://cr.yp.to/daemontools/multilog.html) >>=C2=B2=E2=80=A6(https://github.com/logrotate/logrotate) >> >