summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-10-29 11:01:18 +0000
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-10-29 11:01:18 +0000
commit527bbd44deffe53192cffb0945f606d6fe5dfb25 (patch)
treea7466de0bee1943fb87b77c655e3b365e9606771
parentd6db6dda7552ed6c480ce330cc446881892487b9 (diff)
parentadd5d43b6ea0f4fbe85af4c07afe9e549b700205 (diff)
downloadgitlab-ce-527bbd44deffe53192cffb0945f606d6fe5dfb25.tar.gz
Merge branch 'master' into 'master'
Close #717 This closes #717: Add documentation changes to: * Set the permissions of the unix socket properly * Create the directory for the socket * Make sure tmpfiles.d persists said directory The first change makes sure gitlabl can connect to the socket. The latter two avoid redis from failing to start on systemd-based systems, including recent versions of Debian. You may probably want to cherry-pick this into the documentation for the latest stable release. See merge request !224
-rw-r--r--doc/install/installation.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md
index 7a39f2eec9f..ac6535b0c86 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -150,6 +150,17 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
# Enable Redis socket for default Debian / Ubuntu path
echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf
+ # Grant permission to the socket to all members of the redis group
+ echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf
+
+ # Create the directory which contains the socket
+ mkdir /var/run/redis
+ chown redis:redis /var/run/redis
+ chmod 755 /var/run/redis
+ # Persist the directory which contains the socket, if applicable
+ if [ -d /etc/tmpfiles.d ]; then
+ echo 'd /var/run/redis 0755 redis redis 10d -' | sudo tee -a /etc/tmpfiles.d/redis.conf
+ fi
# Activate the changes to redis.conf
sudo service redis-server restart