Auto start node-red in ubuntu

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.

okay thank you sir