feat: 修改 PHP 启动脚本

This commit is contained in:
zhengkunwang223 2023-12-06 17:28:56 +08:00
parent e5370c604d
commit f4fa2951e0
7 changed files with 21 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi

View File

@ -1,5 +1,8 @@
#!/bin/sh
if command -v supervisord > /dev/null 2>&1; then
php-fpm -y /usr/local/etc/php-fpm.conf &
supervisord -c /etc/supervisord.conf
else
php-fpm -y /usr/local/etc/php-fpm.conf
fi