From 09e51fc7b2cf2d8f9ba1429bc26a3e757815dafe Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Mon, 4 May 2020 00:34:25 +0200 Subject: [PATCH] celery service set the permission on the socket --- conf/celery-weblate.service | 2 +- conf/weblate.service | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/conf/celery-weblate.service b/conf/celery-weblate.service index 337cf35..a033ad6 100644 --- a/conf/celery-weblate.service +++ b/conf/celery-weblate.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=forking User=__APP__ -Group=__APP__ +Group=www-data PermissionsStartOnly=true EnvironmentFile=__FINALPATH__/celery-weblate WorkingDirectory=__FINALPATH__/ diff --git a/conf/weblate.service b/conf/weblate.service index 813ac9e..16e6b43 100644 --- a/conf/weblate.service +++ b/conf/weblate.service @@ -19,9 +19,7 @@ ExecStart=/usr/bin/uwsgi \ --socket /var/run/__APP__/socket \ --chmod-socket=775 \ --logto /var/log/__APP__/weblate.log \ - --processes 4 \ - --uid=__APP__ \ - --gid=www-data + --processes 4 Restart=on-failure