Path: csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Dan Purgert Newsgroups: uk.comp.os.linux,alt.os.linux.ubuntu Subject: Re: daemon program? Date: Wed, 10 Sep 2025 11:31:51 -0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <109bdsh$1kas0$1@dont-email.me> <109rb8b$1i7fe$1@dont-email.me> <109rfs8$1iu6u$1@dont-email.me> <109rmtv$1l9o9$1@dont-email.me> Injection-Date: Wed, 10 Sep 2025 11:31:52 +0000 (UTC) Injection-Info: dont-email.me; posting-host="107eb23290955f21700a2a789ca1c31a"; logging-data="1725312"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9LgzrBKOhQWNIA8+yc+K4YLEBQrcW2mU=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:ysdjBDZXpqurzEexmluZGjW6m+Y= Xref: csiph.com uk.comp.os.linux:23737 alt.os.linux.ubuntu:212312 On 2025-09-10, Mike Scott wrote: > On 10/09/2025 10:37, Dan Purgert wrote: >> I'm not sure what you mean here. "Logrotate" is a tool that exists. > > logrotate assumes the target can close and re-open its log. By default, sure; but there are options to deal with it. copytruncate Truncate the original log file to zero size in place after cre- ating a copy, instead of moving the old log file and optionally creating a new one. It can be used when some program cannot be told to close its logfile and thus might continue writing (ap- pending) to the previous log file forever. Note that there is a very small time slice between copying the file and truncating it, so some logging data might be lost. When this option is used, the create option will have no effect, as the old log file stays in place. The copytruncate option allows storing rotated log files on the different devices using olddir directive. The copytruncate option implies norenamecopy. -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860