[systemd-devel] Antw: Re: Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)

Lennart Poettering lennart at poettering.net
Tue May 14 08:38:34 UTC 2019


On Di, 14.05.19 08:35, Ulrich Windl (Ulrich.Windl at rz.uni-regensburg.de) wrote:

> >>> Reindl Harald <h.reindl at thelounge.net> schrieb am 13.05.2019 um 08:25 in
> Nachricht <19612492-4b1e-0d87-5360-a67893873c0d at thelounge.net>:
>
> >
> > Am 13.05.19 um 08:20 schrieb Ulrich Windl:
> >>> Note that "/var/run" is a legacy alias for "/run". It's highly
> >>> recommended not to use the former anymore.
> >>
> >> It it because you don't like sub-directories, or is it to save four bytes?
> >> ;-)
> >
> >
> > stop it - if you would have read IT news (golem/heise) the last 7 years
> > or so you would know about /run and why it is a top-directory
> >
> > https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
> >
> > /run
> >
> > Run-time variable data: Information about the running system since last
> > boot, e.g., currently logged-in users and running daemons. Files under
> > this directory must be either removed or truncated at the beginning of
> > the boot process; but this is not necessary on systems that provide this
> > directory as a temporary filesystem (tmpfs).
>
> I knew that. It doesn't answer _why_ /var/run is obsolete.

That decision was made 8 years ago. See here for the longer explanation:

https://lwn.net/Articles/436012/

And since propagated into most distributions, including many which
don't even like systemd. The FHS also says so now, as I learnt recently.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list