Autostart node.js application
- 3 months 1 week ago
I have managed to install alpine successfully on my raspberry pi 3, setup and additional installations are done and are running.
I installed node js via apk and followed some tutorials to get my node-js application working after system has started.
Up to know, I've learned, that I have to create a service which is stored in /ect/local.d/ and has to end with '.start' to be executed by local service. The service has been added via rc-update local default and testwize via rc-update local boot.
Therefore I created a script called sonos.start, which should start node-sonos-http-api server, and contains:
exec npm start
When I stop the local service and restart it, the script is working, but I can not enter anything in the console any more, when I perform a reboot, I cannot even login via SSH anymore. So my guess is, that there is something wrong with my configuration or scripting.
Thank you very much for your kind help,