Node.js upstart vs forever

前端 未结 4 1549
不知归路
不知归路 2021-02-02 17:27

I am looking to daemonize my Node.js application. What\'s the difference between upstart and forever? Also, are there other packages I might want to considering looking at?

4条回答
  •  花落未央
    2021-02-02 18:06

    The main difference in objective is that upstart is designed to start an application on system boot. Forever doesn't have that and instead is focused on keeping a node.js script running despite crashes (most likely unhandled exceptions). You will be wise to combine the two .. i.e. start forever yourscript.js from upstart (on system boot).

    That said you will need to look at your platform specific version of upstart equivalent. Upstart was never on windows and is now deprecated for ubuntu / debian : http://www.markshuttleworth.com/archives/1316

提交回复
热议问题