Walter62 grazie
Allora... facendo la procedura della nuova guida e togliendo la stringa in 123solar.service
il servizio ezl non mi compare ancora dopo il riavvio
ho dato il comando manualmente /var/www/MyScripts/EZL.sh ed è partito
Ma nel nuovo codice bisogna editare qualche cosa?
Codice:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
stty -F /dev/ttyUSB0 19200 # imposta la velocità della seriale a 19200
sudo /var/www/MyScripts/EZL.sh # avvia il device EZL
sudo 123solar start # avvia 123solar ad ogni riavvio
exit 0
ctrl+O per salvare e ctrl+X per uscire
Allora... facendo la procedura della nuova guida e togliendo la stringa in 123solar.service
il servizio ezl non mi compare ancora dopo il riavvio
ho dato il comando manualmente /var/www/MyScripts/EZL.sh ed è partito
Ma nel nuovo codice bisogna editare qualche cosa?
Codice:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
stty -F /dev/ttyUSB0 19200 # imposta la velocità della seriale a 19200
sudo /var/www/MyScripts/EZL.sh # avvia il device EZL
sudo 123solar start # avvia 123solar ad ogni riavvio
exit 0
ctrl+O per salvare e ctrl+X per uscire
Commenta