LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Boot - Debian forever app.js (https://www.linuxquestions.org/questions/linux-newbie-8/boot-debian-forever-app-js-4175466640/)

gothrog 06-19-2013 01:01 PM

Boot - Debian forever app.js
 
All,

I'm having an issue getting a forever app.js to launch during boot. Other scripts start, but not this one.

I'm running on Debian. This seems to run on Fedora fine, but Debian isn't playing nicely.

Script
Code:

cd /opt/node
forever app.js

I can run the script and it works. rc.local doesn't seem to work on Debian. I read that I needed to put the script into the /etc/init.d/ which works to launch other processes for me, but NOT the forever portion. I even had guts of the script as part of another script that did work and the forever portion just doesn't work.

For some reason I can't get the forever app.js to start at boot. My head is beginning to feel like this.:banghead:

I've then tried placing it into the background and close the session, but as soon as I close the session it stops again. Soo more :banghead:

I hope you can help me.

jdkaye 06-19-2013 01:46 PM

I'm running Debian also and I have no program called forever. Maybe "forever" is some Fedora-specific thing.
Code:

Aptitude search forever
turns up nothing. In searching Debian's package contents the only "forever" I could find is this:
Quote:

/usr/share/ucblogo/helpfiles/forever ucblogo [not kfreebsd-amd64, kfreebsd-i386]
Is this the one you mean?
jdk

gothrog 06-19-2013 02:39 PM

Below is a link that explains how to install forever
https://github.com/nodejitsu/forever

It is used to keep a nodejs server operational. I used npm to install.
Code:

$ [sudo] npm install forever -g

jdkaye 06-19-2013 11:25 PM

And have you installed the npm package? and then have you installed forever with npm?
jdk

gothrog 06-21-2013 10:14 AM

npm was already installed as part of the VPS. Yes forever was installed using npm.


All times are GMT -5. The time now is 05:47 PM.