Supervisor 命令不会启动 Chromium
Supervisor command won't start Chromium
编辑:显然脚本确实 运行,但它只是没有启动我的浏览器。还是不知道为什么。
我正在尝试使用 supervisor 运行 commands/scripts,但我似乎无法让它工作。
我得到了 Pi_Video_looper 的想法,它与以下脚本相同:
# Supervisord configuration to run video looper at boot and
# ensure it runs continuously.
[program:video_looper]
command=python -u -m Adafruit_Video_Looper.video_looper
autostart=true
autorestart=unexpected
startsecs=5
所以我根据自己的需要修改为:
# Supervisord configuration to run video looper at boot and
# ensure it runs continuously.
[program:video_looper]
command=chromium-browser http://google.be --incognito
autostart=true
autorestart=unexpected
startsecs=5
我也用了命令:
python /home/pi/Startup/Script.py
它会进行一些测试,然后调用浏览器,但也不会执行任何操作,尽管它 运行 完全来自命令行。我错过了什么吗?
编辑:重启后不起作用,sudo service supervisor restart
后不起作用
编辑 2:
日志文件显示它应该是 运行ning,所以显然它只是没有在我的 GUI 中打开它?:
2016-01-27 16:40:43,569 INFO daemonizing the supervisord process
2016-01-27 16:40:43,573 INFO supervisord started with pid 4767
2016-01-27 16:40:44,583 INFO spawned: 'video_looper' with pid 4773
2016-01-27 16:40:49,593 INFO success: video_looper entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
下面的工作版本:
这里的主要问题是铬不能 运行 由于某些不明原因
作为 root
# Supervisord configuration to run chromium at boot and
# ensure it runs continuously.
[program:chromiumbrowser]
command=chromium-browser http://google.be --incognito
user=pi
autostart=true
autorestart=unexpected
startsecs=5
编辑:显然脚本确实 运行,但它只是没有启动我的浏览器。还是不知道为什么。
我正在尝试使用 supervisor 运行 commands/scripts,但我似乎无法让它工作。
我得到了 Pi_Video_looper 的想法,它与以下脚本相同:
# Supervisord configuration to run video looper at boot and
# ensure it runs continuously.
[program:video_looper]
command=python -u -m Adafruit_Video_Looper.video_looper
autostart=true
autorestart=unexpected
startsecs=5
所以我根据自己的需要修改为:
# Supervisord configuration to run video looper at boot and
# ensure it runs continuously.
[program:video_looper]
command=chromium-browser http://google.be --incognito
autostart=true
autorestart=unexpected
startsecs=5
我也用了命令:
python /home/pi/Startup/Script.py
它会进行一些测试,然后调用浏览器,但也不会执行任何操作,尽管它 运行 完全来自命令行。我错过了什么吗?
编辑:重启后不起作用,sudo service supervisor restart
编辑 2: 日志文件显示它应该是 运行ning,所以显然它只是没有在我的 GUI 中打开它?:
2016-01-27 16:40:43,569 INFO daemonizing the supervisord process
2016-01-27 16:40:43,573 INFO supervisord started with pid 4767
2016-01-27 16:40:44,583 INFO spawned: 'video_looper' with pid 4773
2016-01-27 16:40:49,593 INFO success: video_looper entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
下面的工作版本: 这里的主要问题是铬不能 运行 由于某些不明原因
作为 root# Supervisord configuration to run chromium at boot and
# ensure it runs continuously.
[program:chromiumbrowser]
command=chromium-browser http://google.be --incognito
user=pi
autostart=true
autorestart=unexpected
startsecs=5