#!/bin/bash source $HOME/.profile; source $HOME/.bashrc #Start frontend /usr/sbin/nginx -g 'daemon off; master_process on;' & #Start backend cd /root/okiba-org-backend; pnpm start & # Wait for any process to exit wait -n # Exit with status of process that exited first exit $?