Run Node-Red(installed as su) at startup

Hello everybody, I have some problems with getting Node-Red to work on my PLCNext, I hope you guys can help me. I installed Node-Red using these two guides: https://www.youtube.com/watch?v=Iwv5tB8wd10&ab;_channel=PHOENIXCONTACTTechnicalSupport https://www.youtube.com/watch?v=EDcaYXb3lnU&ab;_channel=PHOENIXCONTACTTechnicalSupport It was quitte some work to get it to work, but eventually it did work out. The last hurdle left is to get it to run on startup, this should be pretty easy but I can’t seem to get it to work. This is everything I have done: Made a script #!/bin/sh export NVM_DIR="$HOME/.nvm" export PATH=$PATH:/opt/bin:/opt/sbin [ -s "$NVM_DIR/nvm.sh" ] && \\\\. "$NVM_DIR/nvm.sh" # This loads nvm nvm use 11.15.0 node-red Put it in /etc/init.d and ran chmod For some reason it doesn’t work at boot (I think it has to do something with the fact that during the install I was logged in as „su“ ). The script does work when I’m logged in as „su“ (not when using sudo). Could someone help me, if I always have to login as „su“ at boot and than use the script it doesn’t really work. Regards, Rick

Hi Rick, sorry but we as PLCnext Support are not very familiar with Node Red, but maybe someone else can assist… However, as reader of the forum it seems that many users made good experiences deploying node.red as container. Maybe the following article could help you Node-Red with docker tips and best practice Take care, Frank