From: | Ulrich Mueller <ulm@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] keepdir /var/run/package/? | ||
Date: | Fri, 13 Aug 2010 17:05:17 | ||
Message-Id: | 19557.31544.841428.378036@a1i15.kph.uni-mainz.de | ||
In Reply to: | Re: [gentoo-dev] keepdir /var/run/package/? by Mike Frysinger |
1 | >>>>> On Fri, 13 Aug 2010, Mike Frysinger wrote: |
2 | |
3 | > for people who do wish to improve their init.d scripts, recreating a |
4 | > dir is easy if your init.d runs after localmount: |
5 | > [ ! -d /var/run/foo ] && install -d -m 755 -o fowner -g fgroup /var/run/foo |
6 | |
7 | Why not "checkpath -d -o fowner:fgroup -m 0755 /var/run/foo"? |
8 | This also corrects wrong owner and permissions for an existing dir. |
9 | |
10 | Ulrich |
Subject | Author |
---|---|
Re: [gentoo-dev] keepdir /var/run/package/? | Mike Frysinger <vapier@g.o> |