【发布时间】:2016-08-08 03:02:17
【问题描述】:
我们开发了一个在售货亭上运行的应用程序,用于销售产品。过去,该应用程序是由 kiosk 中预装的 firefox 44.0.4 启动的,但它存在很多问题,因此我们必须找到替代方案。经过搜索,electron 看起来不错,我们的代码已经成功运行。
为了确保我们的应用不会意外崩溃或停止,我们使用 supervisor 来运行 firefox。当我们尝试运行电子时,它失败了,这里是主管日志:
2016-08-08 10:49:06,337 INFO spawned: 'x1ux' with pid 3903
2016-08-08 10:49:06,439 INFO exited: x1ux (exit status 1; not expected)
2016-08-08 10:49:07,441 INFO gave up: x1ux entered FATAL state, too many start retries too quickly
这是我们的应用配置文件:
[program:x1ux]
command = /home/f1/electron/ntt/src
process_name = x1ux
autostart = true
startsecs = 3
autorestart = true
user = f1
redirect_stderr = true
stdout_logfile = /tmp/x1ux.log
stderr_logfile = /tmp/x1ux.log
仅供参考:操作系统是 ubuntu 14.04 x64 这是我的问题:主管如何运行电子应用程序?或者永久运行电子应用程序的正确方法是什么?
【问题讨论】:
-
你有想过这个吗?我也有同样的问题。
标签: electron supervisord