From 1f23be2d856cf44a0ebf832cc355d1188f4136c9 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 13 Jul 2016 09:11:40 -0500 Subject: [PATCH] A bit of a documentation update around celery systemd init files --- docs/source/siteadmin/production-deployments.rst | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.25.1