I work on a raspberry pi 3B and I want to have 2 scripts that turn a node.js application on or off.
I found this for bash but I don't know how to use that for my program: https://stackoverflow.com/a/3510850/10491406
kill $(ps aux | grep '[n]ode main.js' | awk '{print $2}')