>>>>> On Fri, 13 Aug 2010, Mike Frysinger wrote:

> for people who do wish to improve their init.d scripts, recreating a
> dir is easy if your init.d runs after localmount:
> [ ! -d /var/run/foo ] && install -d -m 755 -o fowner -g fgroup /var/run/foo

Why not "checkpath -d -o fowner:fgroup -m 0755 /var/run/foo"?
This also corrects wrong owner and permissions for an existing dir.

Ulrich

Reply via email to