File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,15 @@ do_start()
3333
3434 umask 017
3535 sudo -u {SYSTEM_USER} touch /var/run/hhvm/hhvm_{SYSTEM_USER}.pid
36- /usr/bin/hhvm --mode daemon -vServer.Type=fastcgi --user {SYSTEM_USER} -vServer.FileSocket=/var/run/hhvm/hhvm.{SYSTEM_USER}.sock -vLog.Level=Warning -vLog.UseLogFile=false -vRepo.Central.Path=/var/run/hhvm/hhvm.{SYSTEM_USER}.hhbc -vServer.FixPathInfo=true -vPidFile=/var/run/hhvm/hhvm_{SYSTEM_USER}.pid & echo $! > /var/run/hhvm/hhvm_{SYSTEM_USER}.pid
36+ INIFILE=" "
37+ if [[ -e " /var/www/conf/{SYSTEM_USER}/php.ini" ]] ; then
38+ INIFILE=" -vServer.IniFile=/var/www/conf/{SYSTEM_USER}/php.ini" ;
39+ elif [[ -e " /etc/php5/hhvm/php.ini" ]] ; then
40+ INIFILE=" -vServer.IniFile=/etc/php5/hhvm/php.ini" ;
41+ elif [[ -e " /etc/php5/cgi/php.ini" ]] ; then
42+ INIFILE=" -vServer.IniFile=/etc/php5/cgi/php.ini" ;
43+ fi
44+ /usr/bin/hhvm --mode daemon -vServer.Type=fastcgi --user {SYSTEM_USER} -vServer.FileSocket=/var/run/hhvm/hhvm.{SYSTEM_USER}.sock -vLog.Level=Warning -vLog.UseLogFile=false -vRepo.Central.Path=/var/run/hhvm/hhvm.{SYSTEM_USER}.hhbc -vServer.FixPathInfo=true $INIFILE -vPidFile=/var/run/hhvm/hhvm_{SYSTEM_USER}.pid & echo $! > /var/run/hhvm/hhvm_{SYSTEM_USER}.pid
3745}
3846
3947do_stop ()
You can’t perform that action at this time.
0 commit comments