Ubuntu 15.04 + nodm - 持续重启

时间:2015-07-07 19:22:47

标签: ubuntu startup kiosk kiosk-mode

我试图让nodm在启动时启动一个自助服务终端应用程序。

它成功启动了应用程序,但在启动后死亡/重启,让我回到控制台。然后它会在越来越长的时间后定期尝试重新启动。

通过root手动启动应用程序按预期工作。

auth.log报告以下内容:

Jul  7 13:56:33 bp1 nodm[708]: restarting session
Jul  7 13:56:33 bp1 nodm[1594]: Successful su on ??? for root by root
Jul  7 13:56:33 bp1 nodm[1594]: pam_unix(nodm:session): session opened for user root by (uid=0)
Jul  7 13:56:33 bp1 systemd-logind[640]: New session c3 of user root.
Jul  7 13:56:33 bp1 systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Jul  7 13:56:38 bp1 nodm[1594]: pam_unix(nodm:session): session closed for user root
Jul  7 13:56:38 bp1 nodm[708]: X session 1594 quit with status 0
Jul  7 13:56:38 bp1 nodm[708]: sending X server 1591 the TERM signal
Jul  7 13:56:38 bp1 nodm[708]: session lasted less than 7 seconds: sleeping 30 seconds before restarting it

/ etc / default / nodm设置如下:

# nodm configuration

# Set NODM_ENABLED to something different than 'false' to enable nodm
NODM_ENABLED=true

# User to autologin for
NODM_USER=root

# First vt to try when looking for free VTs
NODM_FIRST_VT=7

# X session
NODM_XSESSION=/root/.xsession

# Options for the X server
NODM_X_OPTIONS='-nolisten tcp'

# If an X session will run for less than this time in seconds, nodm will wait an
# increasing bit of time before restarting the session.
NODM_MIN_SESSION_TIME=5

.xsession目前包含:

xset -dpms
xset s off
xset s noblank

/var/app/electron /var/app/project_contents/

此外,我发布了一个闪烁的视频: http://youtu.be/M5ZvBbhJlCY

关于可能导致此问题的任何指示?

1 个答案:

答案 0 :(得分:0)

这与nodm无关。电子在REPL模式下运行Johnny-Five。在实例化Johnny-Five时禁用REPL模式解决了该问题。现在是凌晨5点54分。