Automatically start your application on boot Pm2
start application first
Enter gekko folder
pm2 start gekko.js -n "xxxx1" -- -c config.js
then apply this command
pm2 startup systemd
Now if your Node.js application crashes due to an error it will restart, and if Ubuntu crashes for any reason, the process will automatically restart with Ubuntu. The processes can be restarted
to stop
pm2 unstartup systemd
start application first
Enter gekko folder
pm2 start gekko.js -n "xxxx1" -- -c config.js
then apply this command
pm2 startup systemd
Now if your Node.js application crashes due to an error it will restart, and if Ubuntu crashes for any reason, the process will automatically restart with Ubuntu. The processes can be restarted
to stop
pm2 unstartup systemd