I would guess it's something to do with the output of the script causing the upstart script to stop.
If you follow the guide on this page they seem to recommend piping the stdout to a log file.
env LOG="/var/log/my-application.log"
exec forever stop /home/lwood/myapp/app.js >> $LOG
ответ дан
5 December 2019 в 14:55
Ссылка