Hello, I suggest you check whether it takes up too many resources and is shut down by the system.
If it is a Node project, you can try to use Cron's shell script. Check it and replace 111 with your own project name.
pid=`ps aux|grep $(cat /www/server/nodejs/vhost/pids/111.pid)|grep -v grep|wc -l`
echo ${pid}
if [ "${pid}" == "0" ];then
bash /www/server/nodejs/vhost/scripts/111.sh
fi