Autostart node.js application

2 posts / 0 new
Last post
#1 Sun, 2017-08-06 02:19
dadeppa
  • dadeppa's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2017-08-06

Hello everyone,

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:

#!/bin/sh
cd /usr/node-sonos-http-api
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,

Andreas

Wed, 2017-08-09 11:58
dadeppa
  • dadeppa's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2017-08-06

After struggling with this for a while, I found a solution. Thanks to jishi for his effort and patience!

https://github.com/jishi/node-sonos-http-api/issues/539

Log in or register to post comments