Update debian-websockets.service (#7445)

Replace the deprecated PermissionsStartOnly option in favour of the supported method of elevating the exec commands.

https://github.com/systemd/systemd/pull/10802#issuecomment-439446299
This commit is contained in:
Harry Foster
2025-08-04 21:48:16 +01:00
committed by GitHub
parent 134ce77d63
commit 2afb1a0d6c

View File

@@ -9,9 +9,8 @@
Description=Websocket Router Service
[Service]
PermissionsStartOnly=true
ExecStartPre=mkdir -p /var/run/fusionpbx
ExecStartPre=chown www-data:www-data /var/run/fusionpbx
ExecStartPre=+mkdir -p /var/run/fusionpbx
ExecStartPre=+chown www-data:www-data /var/run/fusionpbx
ExecStart=/usr/bin/php /var/www/fusionpbx/core/websockets/resources/service/websockets.php --no-fork
User=www-data
Group=www-data