[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Bug#344758: init.d script should create /var/run/dirmngr

On Wed, 04 Jan 2006, Peter Samuelson wrote:
> [Peter Eisentraut]
> > What do you think about this request?  It seems reasonable, but I

> This issue was mentioned in the /run discussion we just had on this
> list.  I'm in favor of forcing all init scripts to mkdir -p

<initscripts co-maintainer hat on>

Do it.  We are *heavly* considering support for ephemeral /var/run (which is
orthogonal to /run or anything else in that topic), so you might as well do
it now and make your user happy.  A lot of other packages already support
ephemeral /var/run.

BUT, if you do, don't ship /var/run inside the deb.

> /var/run/whatever-they-will-need; it's not like this is hard to do.
> mkdir -p even handles "directory already exists" sanely (i.e., silently
> and without error).

Do remember to bang out gracefully with an error if you need to chown and
chmod that directory (e.g. for a daemon that uses a system user created in
postinst), and that fails for some reason.

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: