the default DietPi install does not install those extra commands, so they are not available.
If you use our upgrade script for Pi - it should fail to upgrade and tell you to use their update mechanism, but it will as a bonus add the commands for you... Alternatively the commands used to generate them can be run manually
The weird thing is even though, I can see node-red-stop and node-red-start at /usr/bin, still getting the following error: /usr/bin/node-red-stop: line 1: dietpi-services: command not found
If I run as root: /usr/bin/node-red-stop: 1: dietpi-services: not found
That is saying that a command used inside node-red-stop is not found. Not that node-red-stop itself is not found. Have a look at the start of the node-red-stop script.
Strange. Does it help if you use the full path to dietpi-services in the script. So possibly /usr/bin/dietpi-services stop node-red
You can find where it is by using which dietpi-services
/usr/bin/dietpi-services does not exit. which dietpi-services returns nothing.
However, I have seen the following when I have checked their forum.:
In general dietpi-services is just a frontend for systemctl that we use to start/stop/restart all known/added services on boot, before and after software installs, updates and such, in an order that respects cross-access, e.g. webserver accessing PHP-FPM, or PHP accessing database via module and such.
Hence, I changed the dietpi-services to systemctl. Now, it works as expected.