Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion keep alive webserver

Received: by 10.52.67.209 with SMTP id p17mr6945035vdt.0.1331804607002;
        Thu, 15 Mar 2012 02:43:27 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.220.218.147 with SMTP id hq19ls1607696vcb.4.gmail; Thu, 15 Mar
 2012 02:43:15 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.23.80 with SMTP id k16mr627177vdf.7.1331804595585; Thu, 15
 Mar 2012 02:43:15 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 delbiancoflavi...@gmail.com designates internal as permitted sender)
 smtp.mail=delbiancoflavi...@gmail.com; dkim=pass
 header...@gmail.com
Received: by s7g2000vby.googlegroups.com with HTTP; Thu, 15 Mar 2012 02:43:15
 -0700 (PDT)
Date: Thu, 15 Mar 2012 02:43:15 -0700 (PDT)
In-Reply-To: <CAGkHjAX9nD0_bQif6gNMvA65-kJX9gk1oGYEzpZpTX1eykwHuA@mail.gmail.com>
References: <ed18ba32-2df5-488e-be96-ca36b2911e19@do4g2000vbb.googlegroups.com>
 <CAGkHjAX9nD0_bQif6gNMvA65-kJX9gk1oGYEzpZpTX1eykwHuA@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2)
 Gecko/20100101 Firefox/10.0.2,gzip(gfe)
Message-ID: <d2a55772-2d87-494b-931b-ff76e787bf0c@s7g2000vby.googlegroups.com>
Subject: Re: keep alive webserver
From: Flavio Del Bianco <delbiancoflavi...@gmail.com>
To: nodejs <nodejs@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Ok once I createed the file /etc/init/mynode.conf what I have to do? I
tryed immediatly to make "sudo start mynode" but server returns me :
start: Unknown job: mynode
What this it means?

On 12 Mar, 17:08, Tim Caswell <t...@creationix.com> wrote:
> it depends on your system. =A0On Ubuntu I use upstart and create a small
> script in /etc/init/SOMENAME.conf. =A0And then you can use start, stop, a=
nd
> restart like =A0`sudo start SOMENAME`
>
> Here is the upstart config for howtonode.org:
>
> =A0 =A0 description "Run node server"
>
> =A0 =A0 env
> PATH=3D/home/tim/nvm/v0.6.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin=
:/usr/bin:/sbin:/bin:/usr/games
>
> =A0 =A0 respawn
> =A0 =A0 start on runlevel [23]
>
> =A0 =A0 script
> =A0 =A0 =A0 cd /home/tim
> =A0 =A0 =A0 exec node server.js > access.log 2>> error.log
> =A0 =A0 end script
>
> Because of the "start on runlevel [23]" line it's started whenever the
> server reboots. =A0The "respawn" line restarts the node process if it die=
s.
>
> On Mon, Mar 12, 2012 at 10:02 AM, Flavio Del Bianco <
>
>
>
>
>
>
>
> delbiancoflavi...@gmail.com> wrote:
> > Hi, I'm learning nodejs and I had a doubt in how I keep alive a
> > webserver without running it everytime like $ node myserver.js? and
> > how it can connect alone every time the server get on like it does
> > apache.
>
> > --
> > Job Board:http://jobs.nodejs.org/
> > Posting guidelines:
> >https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > You received this message because you are subscribed to the Google
> > Groups "nodejs" group.
> > To post to this group, send email to nodejs@googlegroups.com
> > To unsubscribe from this group, send email to
> > nodejs+unsubscribe@googlegroups.com
> > For more options, visit this group at