I'm hoping to find out how to tell upstart that meteor will fork more than twice?
I followed their instructions at http://upstart.ubuntu.com/cookbook/#how-to-establish-fork-count to count the forks and it reports 21 times.
This is kind of a non issue in that stop myapp
and start myapp
work as expected (they stop and start and do not hang). If its relevant, I am running this in an Ubuntu 12.04 LTS (64-bit) VM created w/ Vagrant .
#!upstart
# Upstart config for running the node application
description "myapp"
author "My Company"
start on (filesystems and net-device-up IFACE=eth0)
stop on shutdown
respawn # restart when job dies
respawn limit 5 60 # give up restart after 5 respawns in 60 seconds
chdir /vagrant
script
exec sudo -u vagrant MONGO_URL=mongodb://localhost:27017/project meteor -p 4000
end script
Thoughts?