Browse Source

Start PHP If Not Running

old-stable
Mitesh Shah 12 years ago
parent
commit
a0c58b0045
  1. 21
      setup/engine

21
setup/engine

@ -103,13 +103,29 @@ NGINXRELOAD()
{
# Test & Reload Nginx
echo -e "\033[34m Reloading Nginx Configuration, Please wait... \e[0m"
echo -e "\033[34m Reloading Nginx Configuration, Please Wait... \e[0m"
nginx -t && service nginx reload || OwnError "Unable To Reload Nginx"
}
PHPSTART()
{
# Check PHP5-FPM IS Running
service php5-fpm status
if [ $? -ne 0 ]
then
echo -e "\033[34m Restarting PHP5-FPM, Please Wait... \e[0m"
service php5-fpm start || OwnError "Unable To Restart PHP5-FPM"
fi
}
# Easy Engine System Settings
if [ "$1" = "system" ]
then
@ -449,6 +465,9 @@ then
# Reload Nginx Configuration
NGINXRELOAD
# Start PHP-FPM If Not Running
PHPSTART
else
EngineHelp

Loading…
Cancel
Save