From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QMUrk-0007Vx-DD for garchives@archives.gentoo.org; Wed, 18 May 2011 00:44:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC0951C02B; Wed, 18 May 2011 00:43:46 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 4069C1C0CE for ; Wed, 18 May 2011 00:43:17 +0000 (UTC) Received: by gxk9 with SMTP id 9so480275gxk.40 for ; Tue, 17 May 2011 17:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=L1rgHJzW8NMR16ZmZPTMkA8PP2mM8Tm57y7l3rPv0o8=; b=E4tQ4crvXPOnQfbWJpnBc4/Q4MWt/SOtJ+577ik+A4So2jTJQOTpgQvLrr9VVxbJeF 9GR6TUQVHKP/8PsjD/cn5aE8e3y1xnCP5pOo/JWw/GHkZtKCBa4Sd88Ev6HEncmFL59N V/H39Bnym2B6l6tH0e+j6uZvmdrFFi/NmMPOk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=gbTzpHpvY1RnpC026d/BrQeToNm/LpKY/QGjE84sqZkO3eEty31ljMgWnpfo877dac HskIeTWD1ALW4MMoGy1le1xwf+PLuIK/UGYBc4CfRuPDI/+A9YmvvBA0tZAPr8OPB7mG /K0sIMNRcKYsdKdYcV6DC8DsYvEorJypIdt/g= Received: by 10.236.191.168 with SMTP id g28mr1316876yhn.517.1305679396629; Tue, 17 May 2011 17:43:16 -0700 (PDT) Received: from linux1 (cpe-76-183-49-63.tx.res.rr.com [76.183.49.63]) by mx.google.com with ESMTPS id 42sm470589yhl.68.2011.05.17.17.43.14 (version=SSLv3 cipher=OTHER); Tue, 17 May 2011 17:43:15 -0700 (PDT) Sender: William Hubbs Received: by linux1 (sSMTP sendmail emulation); Tue, 17 May 2011 19:43:12 -0500 Date: Tue, 17 May 2011 19:43:12 -0500 From: William Hubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: use of the /run directory Message-ID: <20110518004312.GC4274@linux1> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20110517165748.GA3266@linux1> <1305655899.18096.4.camel@tablet> <20110517190703.GA3723@linux1> <20110517204025.GA29144@Eternity.halls.manchester.ac.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 735df8f02001650ca77934418b209a23 --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 17, 2011 at 08:06:46PM -0400, James Cloos wrote: > >>>>> "MC" =3D=3D Markos Chandras writes: >=20 > MC> Can you please provide some examples that require /var/lock to > MC> survive a reboot? >=20 > Not everything is part of the distribution. >=20 > The one which first comes to mind are lock files placed to prevent > certain cron-initiated jobs from running right after a reboot. >=20 > Or locks preventing certain daemons from accepting connections. >=20 > Such locks often are used to protect net bandwidth when it is needed > for real-time use. A reboot of some random box on the lan should not > break such locks. According to what I am reading in the fhs, /var/lock is not sharable between multiple systems. Also, the contents of the lock file is supposed to be the pid of the process that holds the lock [1]. Given that, a lock will automatically be invalid when you reboot, so it should be forgotten about on a reboot. William [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLOCKLOCKFILES --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk3TFiAACgkQblQW9DDEZThl2wCfencQjyNd52KV9iynjwMEozug 1tMAn2u6/wclBn/CoXUMbpRaAd+pdYxC =lOLs -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l--