Hello, try to add a shell script task in cron to restart the node project regularly
Change server to your project name
pkill -9 $(cat /www/server/nodejs/vhost/pids/server.pid)
pid=`ps aux|grep $(cat /www/server/nodejs/vhost/pids/server.pid)|grep -v grep|wc -l`
echo ${pid}
if [ "${pid}" == "0" ];then
bash /www/server/nodejs/vhost/scripts/server.sh
fi
linhlatin