Skip to content

Commit 91fccdc

Browse files
committed
Disable systemd rate limiting for PHP-FPM to prevent installation failures.
1 parent 4898744 commit 91fccdc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/wsl/manager.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,16 @@ default=admin
738738
options = "metadata,umask=0022"
739739
WSLCONF
740740
741+
# Disable systemd rate limiting for PHP-FPM to prevent installation failures.
742+
# When multiple PHP extensions are installed, each triggers a php-fpm restart.
743+
# Without this, systemd's default rate limit (5 starts per 10s) causes failures
744+
# with "Start request repeated too quickly" during first provision.
745+
mkdir -p /etc/systemd/system/php8.3-fpm.service.d
746+
cat > /etc/systemd/system/php8.3-fpm.service.d/override.conf << 'SYSTEMD_OVERRIDE'
747+
[Unit]
748+
StartLimitIntervalSec=0
749+
SYSTEMD_OVERRIDE
750+
741751
# Create .ssh directory for admin user (needed by Ansible known_hosts module).
742752
mkdir -p /home/admin/.ssh
743753
chmod 700 /home/admin/.ssh

0 commit comments

Comments
 (0)