remplace /run par %t et /run/sympa par ${RUNTIME_DIRECTORY} dans l'unité systemd permettant changements

This commit is contained in:
mtrossevin 2021-11-17 18:04:53 +01:00
parent 644ac411fd
commit d4321cb9f8

View file

@ -141,12 +141,12 @@ After=syslog.target sympa.service
Type=forking
User=sympa
Group=sympa
ExecStart=!/usr/bin/spawn-fcgi -F 5 -P /run/sympa/wwsympa.pid -s /run/sympa/wwsympa.socket -u sympa -g sympa -M 0660 -G www-data -- /usr/lib/cgi-bin/sympa/wwsympa.fcgi
ExecStart=!/usr/bin/spawn-fcgi -F 5 -P ${RUNTIME_DIRECTORY}/wwsympa.pid -s ${RUNTIME_DIRECTORY}/wwsympa.socket -u sympa -g sympa -M 0660 -G www-data -- /usr/lib/cgi-bin/sympa/wwsympa.fcgi
Restart=always
RuntimeDirectory=sympa
RuntimeDirectoryPreserve=yes
PIDFile=/run/sympa/wwsympa.pid
PIDFile=%t/sympa/wwsympa.pid
~~~
La configuration du vhost apache devient alors :