Skip to content

Commit 3dccf89

Browse files
committed
Replace nginx restart with nginx stop, nginx start.
Fix "start: Job is already running: nginx" error. Abbreviated Output: +sudo /usr/share/hhvm/install_fastcgi.sh ... Restarting Nginx Finished restarting Nginx +sudo /etc/init.d/hhvm restart * Restarting HHVM FastCGI Daemon hhvm +sudo service nginx restart nginx start/running, process 5311 start: Job is already running: nginx
1 parent 21605f7 commit 3dccf89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/before_script.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
set -x
12
echo "TRAVIS_PHP_VERSION: ${TRAVIS_PHP_VERSION}"
23

34
composer self-update
@@ -54,7 +55,10 @@ server {
5455
EOF
5556
sudo /usr/share/hhvm/install_fastcgi.sh
5657
sudo /etc/init.d/hhvm restart
57-
sudo service nginx restart
58+
sleep 5
59+
sudo service nginx stop
60+
sleep 5
61+
sudo service nginx start
5862
elif [[ "${TRAVIS_PHP_VERSION}" == "nightly" ]]; then
5963
php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &
6064
fi

0 commit comments

Comments
 (0)