KarelWintersky bu gisti düzenledi . Düzenlemeye git
Değişiklik yok
KarelWintersky bu gisti düzenledi . Düzenlemeye git
1 file changed, 4 insertions
restart_php.sh(dosya oluşturuldu)
| @@ -0,0 +1,4 @@ | |||
| 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 | |
    
    
                            
                            Daha yeni
    
    
    Daha eski