LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2013, 02:01 PM   #1
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Rep: Reputation: 15
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.

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

I hope you can help me.
 
Old 06-19-2013, 02:46 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
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

Last edited by jdkaye; 06-19-2013 at 02:47 PM.
 
Old 06-19-2013, 03:39 PM   #3
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Original Poster
Rep: Reputation: 15
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
 
Old 06-20-2013, 12:25 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
And have you installed the npm package? and then have you installed forever with npm?
jdk
 
Old 06-21-2013, 11:14 AM   #5
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Original Poster
Rep: Reputation: 15
npm was already installed as part of the VPS. Yes forever was installed using npm.
 
  


Reply

Tags
boot, debian, node


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot has failed, sleeping forever suresh.k Linux - Newbie 5 09-14-2011 10:50 AM
Webmin loading forever on Debian ziyanpowa Linux - Software 2 08-13-2011 04:25 PM
if pc not on network boot takes forever knobby67 Debian 2 08-16-2006 08:45 AM
MDK10 Taking forever to boot up... Ideas? bromack Mandriva 13 04-24-2004 09:50 PM
Mandrake 9.1 taking forever to boot jcksrobbins Mandriva 6 08-31-2003 01:19 PM


All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration