- 积分
- 552
- 金钱
- 393
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 552
- 金钱
- 393
- HASS币
- 0
|
发表于 2017-11-2 09:38:23
|
显示全部楼层
本帖最后由 61741514 于 2017-11-2 10:15 编辑
按理说“Successfully installed appdaemon”应该就是安装成功了吧?
先创建完服务,然后
sudo systemctl daemon-reload
sudo systemctl enable appdaemon.service
sudo systemctl start appdaemon.service
重读、允许、开始服务后
查看status的时候都是active:failed
下面是 启动appdaemon服务后 查看status时显示的内容
pi@raspberrypi:/ $ sudo systemctl start appdaemon.service
pi@raspberrypi:/ $ sudo systemctl status appdaemon.service
● appdaemon.service - AppDaemon
Loaded: loaded (/etc/systemd/system/appdaemon.service; enabled)
Active: failed (Result: exit-code) since Thu 2017-11-02 10:05:50 CST; 3s ago
Process: 18590 ExecStart=/usr/local/bin/appdaemon -c /home/pi/appdaemon/conf (code=exited, status=1/FAILURE)
Main PID: 18590 (code=exited, status=1/FAILURE)
Nov 02 10:05:50 raspberrypi appdaemon[18590]: working_set = WorkingSet._build_master()
Nov 02 10:05:50 raspberrypi appdaemon[18590]: File "/usr/lib/python3/dist-packages/pkg_resources.py", line 449, in _build_master
Nov 02 10:05:50 raspberrypi appdaemon[18590]: ws.require(__requires__)
Nov 02 10:05:50 raspberrypi appdaemon[18590]: File "/usr/lib/python3/dist-packages/pkg_resources.py", line 745, in require
Nov 02 10:05:50 raspberrypi appdaemon[18590]: needed = self.resolve(parse_requirements(requirements))
Nov 02 10:05:50 raspberrypi appdaemon[18590]: File "/usr/lib/python3/dist-packages/pkg_resources.py", line 639, in resolve
Nov 02 10:05:50 raspberrypi appdaemon[18590]: raise DistributionNotFound(req)
Nov 02 10:05:50 raspberrypi appdaemon[18590]: pkg_resources.DistributionNotFound: MarkupSafe>=0.23
Nov 02 10:05:50 raspberrypi systemd[1]: appdaemon.service: main process exited, code=exited, status=1/FAILURE
Nov 02 10:05:50 raspberrypi systemd[1]: Unit appdaemon.service entered failed state.
|
|