Testing fully automated startup

This commit is contained in:
William Miceli
2019-03-30 20:55:14 -04:00
parent 7216275915
commit 754084ba6f
3 changed files with 15 additions and 19 deletions

7
resources/startup.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
echo "[ INFO ] Starting nginx"
nginx -g "daemon off;"
echo "[ INFO ] Starting PHP-FPM"
service php7.0-fpm start

View File

@@ -1,14 +0,0 @@
#!/bin/bash
set -e
function start_services() {
echo "[ INFO ] Starting nginx"
bash -c 'php5-fpm -D; nginx -g "daemon off;"'
}
function main() {
start_services
}
main "$@"