On Feb 18, 10:49 am, Angelo Chen <[email protected]> wrote: > with following upstart script, I can do: /sbin/start testjs and /sbin/ > stop testjs, but it will not start when boot up pc, why?
For all my of node-based upstart scripts I create a .conf file in /etc/ init/ containing: start on (filesystem and net-device-up IFACE!=lo) stop on shutdown respawn exec node /path/to/script.js >> /path/to/script.log 2>&1 This upstart script will start at boot once there is network connectivity available. Assuming a script filename of foo.conf, you can also manually start and stop via: `start foo` and `stop foo` at the shell prompt. -- 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
