Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用该ringo/daemon模块在 RingoJS 中创建守护进程。但是,似乎没有足够的文档说明如何这样做,我真的很困惑。任何帮助将不胜感激。也许有人可以将我链接到一个解释如何完成它的页面。
ringo/daemon
ringo/daemon旨在与 ringo-daemon.deb 包中的 Debian 初始化脚本结合使用。在这种情况下,init将使用超级用户 ID 调用该函数,以便它可以执行诸如侦听特权 TCP 端口之类的操作,同时start使用普通用户 ID 调用该函数以启动服务器线程。
init
start
从命令行运行 Ringo 也将调用initandstart函数,如果模块提供它们,但stop目前destroy不调用命令行脚本。
stop
destroy
我不确定是否/如何将启动守护进程的一般支持引入 RingoJS,但我愿意接受建议。