| 1 | #!/bin/bash |
| 2 | |
| 3 | PHP_VERSIONS=$(ps -e -o stat,command | grep -E '^Ss\s+php-fpm' | grep -E '[0-9]+\.[0-9]+' -o) |
| 4 | for version in $PHP_VERSIONS; do echo "Restarting ${ANSI_YELLOW}php${version}-fpm${ANSI_RESET} process..."; systemctl restart php${version}-fpm; done |
| 5 |
KarelWintersky / Restar all PHP instances
Last active 2 months ago
Рестарт всех PHP-FPM процессов в системе