Add an option to restart php-fpm from console
This commit is contained in:
parent
9c29682669
commit
a3cc8dcc60
|
@ -81,7 +81,6 @@ fi
|
|||
|
||||
# display a cheap menu
|
||||
echo ""
|
||||
echo ""
|
||||
echo " 0) Logout (SSH only) 8) Shell"
|
||||
echo " 1) Assign Interfaces 9) pfTop"
|
||||
echo " 2) Set interface(s) IP address 10) Filter Logs"
|
||||
|
@ -90,7 +89,8 @@ echo " 4) Reset to factory defaults 12) ${product} Developer Shell"
|
|||
echo " 5) Reboot system 13) Upgrade from console"
|
||||
echo " 6) Halt system ${sshd_option}"
|
||||
echo " 7) Ping host 15) Restore recent configuration"
|
||||
echo " ${option98}"
|
||||
echo " 17) Restart PHP-FPM "
|
||||
echo " ${option98} "
|
||||
|
||||
if [ "${option99}" != "" ]; then
|
||||
/bin/echo "${option99}"
|
||||
|
@ -153,6 +153,9 @@ case ${opmode} in
|
|||
16)
|
||||
/etc/rc.banner
|
||||
;;
|
||||
17)
|
||||
/etc/rc.php-fpm_restart
|
||||
;;
|
||||
98)
|
||||
if [ ! -f /tmp/config_moved ]; then
|
||||
/etc/rc.initial.store_config_to_removable_device
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
/bin/pkill -F /var/run/php-fpm.pid
|
||||
sleep 2
|
||||
|
||||
# Run the php.ini setup file and populate
|
||||
# /usr/local/etc/php.ini and /usr/local/lib/php.ini
|
||||
/etc/rc.php_ini_setup 2>/tmp/php_errors.txt
|
||||
echo ">>> Restarting php-fpm" | /usr/bin/logger -p daemon.info -i -t rc.php-fpm_restart
|
||||
/usr/local/sbin/php-fpm -c /usr/local/lib/php.ini -y /usr/local/lib/php-fpm.conf -RD 2>&1 >/dev/null
|
||||
|
Reference in New Issue