particle-iot / spark-server

UNMAINTAINED - An API compatible open source server for interacting with devices speaking the spark-protocol
https://www.particle.io/
GNU Affero General Public License v3.0
441 stars 136 forks source link

Add basic scripts to install/uninstall debian init.d scripts #26

Closed peterschwarz closed 8 years ago

peterschwarz commented 9 years ago

Scripts to install an init.d script for starting the Spark server on boot. Fixes issue 17

Usage (from <spark-server-root>/js):

sudo ./install-init-d.sh

To uninstall:

sudo ./uninstall-init-d.sh

The user can then start/stop the server manually by using:

sudo /etc/init.d/sparkup start <or stop>

Logs are directed to files in /var/spark

kennethlimcp commented 9 years ago

@peterschwarz, nice! I shall test it on my Rpi later when i get home :)

kennethlimcp commented 9 years ago

Tested this on debian OS and worked fine! Just some warning from forever module to set some parameters but i guess it's not critical.

@peterschwarz, using forever list doesn't show the process running. Is there a way we can make that happen?