Re: Best place for per-daemon log files?
Peter Pentchev <[email protected]> Thu, 18 Sep 2025 00:50:34 +0300
| Newsgroups | gmane.comp.sysutils.supervision.general |
|---|---|
| Message-ID | <[email protected]> |
--mQSovSzvFhOVHvB9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 17, 2025 at 05:10:05PM +0000, Colin Booth wrote: > On Wed, Sep 17, 2025 at 06:23:55PM +0300, Peter Pentchev wrote: > > There may be a bit of a misconception or miscommunication here. > > On Linux systems, /run is practically certaion to be mounted on > > a tmpfs of some kind: its explicit purpose is to be volatile, > > for this boot only. It is similar to /var/run, but one of its main > > advantages is that it will always be cleaned upon boot. > > See e.g. https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html > On most modern systems /var/run is a symlink to /run (or ../run, which > is the same in practice) so they aren't similar but in fact identical. > Other than that everything you said is 100% spot on, using anything > run-related will result in data loss on reboot. Of course you're right :) The way I worded it was mainly because of the fact that I'm kind of old, and I meant something more like "it was originally designed as an equivalent to the concept of the /var/run already existing in pretty much all Unix-like systems". But yeah, since most programs generally already assumed that anything stored under /var/run was not necessarily guaranteed to survive a reboot, the symlink was easy to introduce. G'luck, Peter --=20 Peter Pentchev [email protected] [email protected] [email protected] PGP key: https://www.ringlet.net/roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 --mQSovSzvFhOVHvB9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmjLLSUACgkQZR7vsCUn 3xP6zBAAiIlGwKoaAXWgSFDCtaENhk9PptKpHKkgyZq8kCh9T/GjDl7DHmRZ1KJa 8+hVBq7ISQpjKn2/maIZtsIjOat2LukJSwc0NmqVzmmro0+AHFJCauRRaLH2lYHw mAFBGpKqN08Yf/ieoAVZ0+Tw9Msy+dM//jcu9ed2poYN0C8JGkRrv4M32kJMoZdc wuCP/5+HDCWdK8PhSN1XtK13qgLr4BMA+P0/nAaax28oaJ1C2bGgeD+WMmvOW18c yszBy3ZxHLJwK6SQyBEGJyJ9LK9rxF/2D5IxE9PtiKngX66Pl1KK/8JXsQpGTOtv cP+lky52IyYfFiFnDw25HYiiIxF64kk4saO05B06RciXy8GGJpwnyouXsRd0Sbb7 R5yW0AnpK80PofIWm9U8xPQybWQDae6lllm8Pqh6LVJIbQH+iDUTMZnKuiS4D+Zm RNNm6TzZ/wrQrNcXdWycENb1YcstymboUuzRGFbLyOQiw5DW17UtHzo1Lp0uirzi 07lMKA4VkDTDne4Vd7vU/BQRfGyBiCQNkIdh6LozXnLVUyWtxduATUC3wte3mvSw UiTzpptKA/GMcQGYNHDQKSMvyIfBwtYrDHPlwIgQS7LXU4C0/jezitgjZ14Ll6ha GPVpf2kdmq4sqIJNs7tkEUxiLw2Vy34lsj2VHr/r4FqOe5WKiAg= =/KKG -----END PGP SIGNATURE----- --mQSovSzvFhOVHvB9--