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 |