aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-07-13 09:11:40 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-07-13 09:11:40 -0500
commit1f23be2d856cf44a0ebf832cc355d1188f4136c9 (patch)
tree984bede0cb799fe12afe485e7dd54475af06faf3 /docs/source
parentee828f42c518fd6d0b1fb5d66c3c5fb3d44d885e (diff)
downloadmediagoblin-1f23be2d856cf44a0ebf832cc355d1188f4136c9.tar.lz
mediagoblin-1f23be2d856cf44a0ebf832cc355d1188f4136c9.tar.xz
mediagoblin-1f23be2d856cf44a0ebf832cc355d1188f4136c9.zip
A bit of a documentation update around celery systemd init files
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/siteadmin/production-deployments.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/source/siteadmin/production-deployments.rst b/docs/source/siteadmin/production-deployments.rst
index e65ac332..b7417213 100644
--- a/docs/source/siteadmin/production-deployments.rst
+++ b/docs/source/siteadmin/production-deployments.rst
@@ -69,6 +69,9 @@ modify it to suit your environment's setup:
Group=mediagoblin
Type=simple
WorkingDirectory=/srv/mediagoblin.example.org/mediagoblin
+ # Start mg-celeryd process as root, then switch to mediagoblin user/group
+ # (This is needed to run the ExecStartPre commands)
+ PermissionsStartOnly=true
# Create directory for PID (if needed) and set ownership
ExecStartPre=/bin/mkdir -p /run/mediagoblin
ExecStartPre=/bin/chown -hR mediagoblin:mediagoblin /run/mediagoblin