0

I'm managing multiple node.js processes using forever, and I need them to start at boot time. I think that upstart should be used for that, but I'm not sure whether I should create one init script per node.js app, or only one init script that starts all the node apps.

1 Answer 1

0

I'd use one .conf but give it an instance stanza. See the cookbook for more info and examples. This one won't have a start or stop stanza.

Then you can create another .conf to act as a pidless 'pony engine' to start/stop all the instances at boot/shutdown. This one will have your start/stop stanzas. This way you can control each individual app, or all at once. Again see the cookbook for an example of this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.