Auto start node-red in ubuntu

Hello,
I have installed node-red and even installed pm2, how can we setup node-red to start automatically when the system gets rebooted?

Hi @Iliyas

if you use the install script we provide, it will install node-red as a systemd service that can be started on boot - rather then use pm2 which isn't recommend for running as a service.

https://nodered.org/docs/getting-started/raspberrypi

okay thank you sir