nextcloud/buildfiles/start_services.sh

18 lines
318 B
Bash

#!/bin/bash
#Default auto configs
/root/auto_config.sh
#Start Php-fpm
/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm.conf &
#Start Nginx
/usr/sbin/nginx -g 'daemon off; master_process on;' &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?