Start supervisord using /etc/supervisor/supervisord.conf so that a socket at /var/run is created (default supervisord config).

This commit is contained in:
v
2025-08-01 15:45:54 +02:00
parent ed9c23d9c7
commit 68cfe612ee
3 changed files with 4 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ elif [ "$(dpkg --print-architecture)" = "arm64" ]; then
export SNAPPDF_CHROMIUM_PATH=/usr/bin/chromium
fi
if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Check for required folders and create if needed
[ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions
@@ -64,4 +64,4 @@ if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
echo "Starting supervisord..."
fi
exec "$@"
exec "$@"