Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] The /run migration
Date: Wed, 06 Feb 2013 14:18:04
Message-Id: 5112661B.4030307@gentoo.org
In Reply to: Re: [gentoo-dev] /var/run or /run for init scripts? by "Diego Elio Pettenò"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 06/02/13 09:02 AM, Diego Elio Pettenò wrote:
5 > On 06/02/2013 14:58, Markos Chandras wrote:
6 >> Thanks. Would it made sense to symlink /var/run -> /run so we
7 >> don't end up with stable entries in /var/run directory? Some of
8 >> my init scripts appear to reported as "crashed" whereas the
9 >> process is running just fine. I suspect this is because a stale
10 >> entry is in /var/run directory (or /run I am not sure)
11 >
12 > I would say that we should have that symlink, and I told WilliamH
13 > so before. I think he was going to ask Mike (vapier) about adding
14 > the symlink to baselayout itself, so that it doesn't get reaped
15 > away.
16 >
17 > I agree that the symlink should stay there for compatibility at
18 > least, which should also answer Ian's question.
19 >
20
21 OK - so I've noticed some issues with the way the /run migration has
22 gone down; it seems that a lot of systems do not have a consistent
23 migration and as I don't remember (and my initial look couldn't find)
24 the details for its implementation, I'm hoping someone can chime in
25 and (A) describe the process as it is supposed to work, and (B) point
26 out where it's implemented so that this implementation can be adjusted
27 (or how it's been adjusted can be reviewed) to get everyone's system
28 to a consistent state.
29
30 Normally i'd just ask WilliamH on irc, but since this is more of a
31 forensic discussion i thought it better to do it here..
32
33 So, *my* systems do have /var/run -> /run , which means at some point
34 the /run migration did happen and compatibility symlinks were created.
35 If hwoarang's systems don't have this, there must be an issue somewhere.
36
37 Now, with /run migration itself -- WilliamH and I discussed this issue
38 where /run (when the initial change was to be made if upgrading to
39 openrc-0.11.x) would always have a symlink to /lib/something/openrc/
40 in the directory itself (that is, underneath the tmpfs mount).
41 However when I investigated, I discovered that two of my systems had
42 actual dead directories and temp files in /run (and no symlink). Code
43 has been added to /etc/init.d/bootmisc to clean out anything in /run
44 underneath the tmpfs, but it might be pertinent to figure out why this
45 happened in the first place, as it might be related to why the
46 /var/run symlink might not have been created (and relate to other
47 inconsistencies we haven't found yet).
48
49
50 -----BEGIN PGP SIGNATURE-----
51 Version: GnuPG v2.0.19 (GNU/Linux)
52
53 iF0EAREIAAYFAlESZhsACgkQ2ugaI38ACPC9UgD/c0orcDKEHWpuneSI9ZZ3ZuYo
54 QwQZipdv/bryXly1Ek8A+KrameA53aeF4srZywxS+vjCucIkcS3Rm9x3Yq0O700=
55 =x0lk
56 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] The /run migration Ian Stakenvicius <axs@g.o>
Re: [gentoo-dev] The /run migration Markos Chandras <hwoarang@g.o>