• Support
  • Node Project stops when restarting the server :(

I have a problem when I restart the server or schedule the server restart, the Node Project service crashes. I have to start it manually. Help me, because sometimes I am not connected to the Internet 🙁

    Hi, is it okay to try to use Cron to launch? 11111 Change to your project name

    pid=`ps aux|grep $(cat /www/server/nodejs/vhost/pids/11111.pid)|grep -v grep|wc -l`
    echo ${pid}
    if [ "${pid}" == "0" ];then
     bash /www/server/nodejs/vhost/scripts/11111.sh
    fi 

    aaP_aypp2015
    Or refer to this tutorial
    https://www.aapanel.com/forum/d/21780-pm2-node-project-under-website-both-are-not-working/9

      aaPanel_Kern It worked but a new problem appeared which is that Nginx 1.24.0 also stopped and it must be started manually after rebooting

        Is it possible to fix Dovecot in the service status interface of the mail server?
        If that doesn't work, try manual installation.

        aaP_aypp2015

        I did everything to no avail! How do I install manually?

        Hi, can you give us your aapanel information? The server makes a snapshot backup first, if possible, please send it to kern@aapanel.com.
        It is recommended to fill in the following
        Post link:
        SSH IP address, account password and port:
        aapanel login link address and account password:
        Detailed problem description:

        No post link will not be able to know which user's information is, and the problem will not be processed

        aaP_aypp2015

          Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com