A bit of a documentation update around celery systemd init files
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 13 Jul 2016 14:11:40 +0000 (09:11 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 13 Jul 2016 14:11:40 +0000 (09:11 -0500)
docs/source/siteadmin/production-deployments.rst

index e65ac332707cbebfc11e791f0ba55ec97ed7d4fe..b7417213fb7ad563fb5b96ea0e88369f0a7ef200 100644 (file)
@@ -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