Booting up Spark-Server on a Raspberry Pi

Hi! I’m trying to start Spark-Server on a raspberry pi during the boot up process. Some people are using forever to run node apps as services but all my attempts didn’t work :frowning:
It seams like is running but my core doesn’t connect to it.
Any ideas on how can I set it up so it starts as soon as it finished booting up?
Thanks a lot!

Can you try to do the following:

1.) Created an init.d script

2.) cd to the js directory

3.) fire up the server with node main.js?

Hi @kennethlimcp! I add it to the /etc/init.d/rc.local and it’s up and running!

> sudo nano  /etc/init.d/rc.local

and added this two lines:

cd /spark/spark-server/js/
/usr/local/bin/node /spark/spark-server/js/main.js

Thanks a lot!