Control: tag -1 patch

Hi,

I would suggest the following changes to the package to fix this bug.


diff --git i/debian/etc/apache2/conf-available/radicale-uwsgi.conf 
w/debian/etc/apache2/conf-available/radicale-uwsgi.conf
index 6f658a62..93231ca7 100644
--- i/debian/etc/apache2/conf-available/radicale-uwsgi.conf
+++ w/debian/etc/apache2/conf-available/radicale-uwsgi.conf
@@ -48,8 +48,8 @@
 </IfDefine>
 
 <LocationMatch "${_RADICALE_LOCATION_MATCH}">
-       ProxyPass        
unix:/run/uwsgi/app/${_RADICALE_APP}/socket|uwsgi://${_RADICALE_APP} retry=0
-       ProxyPassReverse 
unix:/run/uwsgi/app/${_RADICALE_APP}/socket|uwsgi://${_RADICALE_APP}
+       ProxyPass        
unix:/var/run/uwsgi/${_RADICALE_APP}.socket|uwsgi://${_RADICALE_APP} retry=0
+       ProxyPassReverse 
unix:/var/run/uwsgi/${_RADICALE_APP}.socket|uwsgi://${_RADICALE_APP}
        RequestHeader    set X-Forwarded-Port "%{SERVER_PORT}s"
        RequestHeader    unset X-Forwarded-Proto
        <If "%{HTTPS} =~ /on/">
diff --git i/debian/etc/uwsgi/apps-available/radicale.ini 
w/debian/etc/uwsgi/apps-available/radicale.ini
index 034acbbb..ea375e06 100644
--- i/debian/etc/uwsgi/apps-available/radicale.ini
+++ w/debian/etc/uwsgi/apps-available/radicale.ini
@@ -19,6 +19,9 @@ cheaper = 3
 # use 4 threads per worker process - tune memory vs. speed here
 threads = 4
 
+idle = 600
+die-on-idle = True
+
 # ressource control
 # 1. temporarily gather log info on what is normal use on your system
 #memory-report = True
diff --git i/debian/radicale.README.Debian w/debian/radicale.README.Debian
index 6b1d1592..75bb904b 100644
--- i/debian/radicale.README.Debian
+++ w/debian/radicale.README.Debian
@@ -13,12 +13,22 @@ using the file /etc/radicale/config as main configuration 
file.
 
 Install needed packages:
 
-       apt install uwsgi uwsgi-plugin-python3 apache2 
libapache2-mod-authnz-external
+       apt install uwsgi-core uwsgi-plugin-python3 apache2 
libapache2-mod-authnz-external
 
 Enable and activate back-end uWSGI service:
 
-       ln -st /etc/uwsgi/apps-enabled/ ../apps-available/radicale.ini
-       service uwsgi restart
+       systemctl enable [email protected]
+       systemctl edit [email protected]
+
+And add the following configuration change to classic uwsgi app setup:
+
+       [Service]
+       StateDirectory=radicale
+
+Then enable socket to communicate between apache2 and uwsgi radicale backend:
+
+       systemctl enable [email protected]
+       systemctl start [email protected]
 
 Setup, enable, and activate front-end service
 (details on vhost and SSL/TLS certificate setup is not covered here):

Reply via email to