zapty / forever-service

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
https://github.com/zapty/forever-service
MIT License
595 stars 65 forks source link

Cant start service Raspbian #11

Closed vongohren closed 9 years ago

vongohren commented 9 years ago

Hi i just installed my service

sudo forever-service install serialReader --script serialReader.js -f " -watchDirectory /home/pi/Code/arduino-plant-reader -w"

It worked, but when i sudo service serialReader start. It says starting serialReader and goes back to the commandline. But nothing is running in sudo forever list and when i check status of the service, it says its not running. Somewhere I can debug this?

arvind-agarwal commented 9 years ago

Best way to debug would be look at /etc/init.d/serialReader file and extract forever start command from the start function and run it directly as sudo, if you are able to make it work typically it should work with the service also.

vongohren commented 9 years ago

Sweet, il check it out when i get home

vongohren commented 9 years ago

Thanks, worked now