Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] keepdir /var/run/package/?
Date: Fri, 13 Aug 2010 16:19:17
Message-Id: AANLkTi=Cj-+6WdNw9zCHRGxjbQW8=i52t=pRcrg9i8D+@mail.gmail.com
In Reply to: Re: [gentoo-dev] keepdir /var/run/package/? by Mike Frysinger
1 On Fri, Aug 13, 2010 at 12:17 PM, Mike Frysinger wrote:
2 > for people who do wish to improve their init.d scripts, recreating a
3 > dir is easy if your init.d runs after localmount:
4 > [ ! -d /var/run/foo ] && install -d -m 755 -o fowner -g fgroup /var/run/foo
5
6 oh, and for the very few cases that need to create a file with
7 specific ownership ahead of time (because their daemon sucks and
8 doesnt drop root properly), then you can do:
9 install -m 644 -o fowner -g fgroup /dev/null /var/run/foo-file
10 -mike