apr 30 19:29:16 raspberry systemd[1]: Starting 123Solar...
apr 30 19:29:17 raspberry python[1408]: File "/usr/bin/EZL", line 3
apr 30 19:29:17 raspberry python[1408]: while true; do socat pty,link=/dev/ttyEZL0,raw,echo=0,waitslave tcp
apr 30 19:29:17 raspberry python[1408]: ^
apr 30 19:29:17 raspberry python[1408]: SyntaxError: invalid syntax
apr 30 19:29:17 raspberry systemd[1]: 123solar.service: Main process exited, code=exited, status=1/FAILURE
apr 30 19:29:17 raspberry systemd[1]: Failed to start 123Solar.
apr 30 19:29:17 raspberry systemd[1]: 123solar.service: Unit entered failed state.
apr 30 19:29:17 raspberry systemd[1]: 123solar.service: Failed with result 'exit-code'.
Nemmeno a dirlo se lancio manualmente EZL tutto funziona ancora
Codice: Seleziona tutto
[Unit]
Description=123Solar
Requires=network.target
After=network.target apache2.service php-fpm.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python /usr/bin/EZL
ExecStart=/bin/sleep 10
ExecStart=/usr/bin/curl http://localhost/123solar/scripts/boot123s.php
[Install]
WantedBy=default.target