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
594 stars 65 forks source link

Cannot be started on Debian Wheezy #55

Open jenschr opened 8 years ago

jenschr commented 8 years ago

root@beaglebone:/home/gpio_test# forever-service install -s server.js --start gpiotest forever-service version 0.5.6

Platform - Debian GNU/Linux 7 (wheezy) foreverpath not found runuserpath not found Invalid arguments!

Usage: forever-service [options] [command]

Commands:

install [options] [service]
   Install node script (defaults to app.js in current directory) as service via forever

delete [service]
   Delete all provisioned files for the service, will stop service if running before delete

Options:

-h, --help     output usage information
-V, --version  output the version number

Command help:

forever-service install --help
forever-service delete --help

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). update-rc.d: using dependency based boot sequencing gpiotest provisioned successfully

Commands to interact with service gpiotest Start - "sudo service gpiotest start" Stop - "sudo service gpiotest stop" Status - "sudo service gpiotest status" Restart - "sudo service gpiotest restart" /etc/init.d/gpiotest: line 61: ./forever: No such file or directory Starting gpiotest /etc/init.d/gpiotest: line 79: ./forever: No such file or directory Service could not be started

jenschr commented 8 years ago

I got a little closer. It turns out that the forever package isn't setup as an dependency?

It's still not starting the service, but now I'm only getting this:

root@beaglebone:/home/gpio_test# sudo forever-service install gpiotest -s /home/gpio_test/server.js
forever-service version 0.5.6

Platform - Debian GNU/Linux 7 (wheezy) runuserpath not found Could not provision service Service is already present

arvind-agarwal commented 8 years ago

I would recommend you can run

sudo forever-service delete gpiotest and try installing again.