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
This commit is contained in:
4
doc/source/development_saio.rst
Normal file → Executable file
4
doc/source/development_saio.rst
Normal file → Executable file
@@ -73,9 +73,9 @@ another device when creating the VM, and follow these instructions.
|
||||
#. `chown -R <your-user-name>:<your-group-name> /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 <your-user-name>:<your-group-name> /var/cache/swift*
|
||||
mkdir /var/run/swift
|
||||
mkdir -p /var/run/swift
|
||||
chown <your-user-name>:<your-group-name> /var/run/swift
|
||||
#. Next, skip to :ref:`rsync-section`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user