From d8c5c0c8975a6991fb53dd916e579ac762a1bc80 Mon Sep 17 00:00:00 2001 From: Tong Li Date: Mon, 6 Aug 2012 09:02:45 -0400 Subject: [PATCH] all in one setup rc.local needs -p for mkdir command bug fixes for swift 1033089 Swift 1.6.0 All in One setup uses rc.local to create a set of directories like the following: /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 /var/run/swift without -p for mkdir command, when some of these directories already exist, the rc.local fails so that the next set of command won't execute. This causes swift fail to start because of /var/run/swift does not exist. Adding -p to both mkdir command solves this problem. Change-Id: Ia26c9a857723747008293c0631c9acc1b58eca7e --- doc/source/development_saio.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 doc/source/development_saio.rst diff --git a/doc/source/development_saio.rst b/doc/source/development_saio.rst old mode 100644 new mode 100755 index 50f4dac87b..43e00d2d43 --- a/doc/source/development_saio.rst +++ b/doc/source/development_saio.rst @@ -73,9 +73,9 @@ another device when creating the VM, and follow these instructions. #. `chown -R : /etc/swift /srv/[1-4]/ /var/run/swift` -- **Make sure to include the trailing slash after /srv/[1-4]/** #. Add to `/etc/rc.local` (before the `exit 0`):: - mkdir /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 + mkdir -p /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 chown : /var/cache/swift* - mkdir /var/run/swift + mkdir -p /var/run/swift chown : /var/run/swift #. Next, skip to :ref:`rsync-section`.