On Thursday, July 25, 2013 10:09:41 PM UTC-4, Ket wrote:
>
> When I check its status with: *initctl status yourprogram *It indicates
> that my app is running. However, it doesn't receive and send data.
>
> But when I stop Upstart with the command *pkill node* and run the app
> manually it works.
>
> If I stop the app I run it manually (^C) and let upstart handles for the
> rest and then uninterruptedly start the app manually it throws error but
> keep running (cluster has caused this). In this case, it doesn't receive
> and transfer data.
>
Assuming your script is doing some networking-related things, you probably
want to change your upstart file so that it starts when networking is
actually available, not just when the OS starts up:
description "node.js server"
author "kvz"
start on started networking
stop on stopping networking
script
export HOME="/root"
exec /usr/local/bin/node /where/yourprogram.js >> /var/log/node.log 2>&1
end script
To specifically start only when a non-loopback network interface is
available, use this instead of 'start on started networking':
start on net-device-up IFACE!=lo
--
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.