I have autostart process in systemd:
Code
[Unit]
Description=AceProxy
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=python /storage/.config/HTTPAceProxy-master/acehttp.py
[Install]
WantedBy=kodi.target
Display More
But script diddin't start:
Code
Jun 22 14:11:52 LibreELEC systemd[1]: Started AceProxy.
Jun 22 14:11:56 LibreELEC python[451]: Traceback (most recent call last):
Jun 22 14:11:56 LibreELEC python[451]: File "/storage/.config/HTTPAceProxy-master/acehttp.py", line 417, in <module>
Jun 22 14:11:56 LibreELEC python[451]: AceConfig.httphost = get_ip_address()
Jun 22 14:11:56 LibreELEC python[451]: File "/storage/.config/HTTPAceProxy-master/acehttp.py", line 378, in get_ip_address
Jun 22 14:11:56 LibreELEC python[451]: return [(s.connect(('1.1.1.1', 80)), s.getsockname()[0], s.close()) for s in [socket(AF_INET, SOCK_DGRAM)]][0][1]
Jun 22 14:11:56 LibreELEC python[451]: File "/storage/.local/lib/python2.7/site-packages/gevent/_socket2.py", line 251, in connect
Jun 22 14:11:56 LibreELEC python[451]: raise error(result, strerror(result))
Jun 22 14:11:56 LibreELEC python[451]: socket.error: [Errno 101] Network is unreachable
Jun 22 14:11:56 LibreELEC systemd[1]: httpaceproxy.service: Main process exited, code=exited, status=1/FAILURE
Jun 22 14:11:56 LibreELEC systemd[1]: httpaceproxy.service: Failed with result 'exit-code'.
Display More
How I can fix it?
Thx.