nextcloud/buildfiles/start_services.sh

20 lines
344 B
Bash
Raw Normal View History

2022-10-07 18:02:43 +05:00
#!/bin/bash
#Default auto configs
2022-10-07 19:09:27 +05:00
if ! [ -f init/init ]
2022-10-07 19:31:34 +05:00
then ./auto_config.sh
2022-10-07 19:09:27 +05:00
fi
2022-10-07 18:02:43 +05:00
#Start Php-fpm
2022-10-07 19:09:27 +05:00
/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf &
2022-10-07 18:02:43 +05:00
#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 $?