开发者

Monitor starting/running/ending apps within node.js

开发者 https://www.devze.com 2023-03-18 21:58 出处:网络
Is there a way to monitor starting/running/ending apps within node.js? Like \"You just started LibreOffice Writer!\".

Is there a way to monitor starting/running/ending apps within node.js?

Like "You just started LibreOffice Writer!". It would be nice if any of you cracks could help me with this.

Edit: I am searching for something that r开发者_StackOverflowuns in the background and is triggered whenever I run a random application/script/whatever has a system-wide pid.


forever is a daemon manager for node.js that can do this.

http://thechangelog.com/post/6637623247/forever-node-js-daemon-manager

https://github.com/indexzero/forever

Or if you just want to start a process once and be able to manage it, you can use the builtin ChildProcess.

http://nodejs.org/docs/v0.4.9/api/child_processes.html

0

精彩评论

暂无评论...
验证码 换一张
取 消