Hello,
For reference, you can use Cron to add command checking. Please replace 111 with your 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