https://www.raspberrypi.org/forums/viewtopic.php?p=921354 Nel nostro caso il server รจ creato sul Desktop dell'utente "pi" di Raspberry /home/pi/Desktop/ServerLED <-- Cartella contenete il server Creare il file serverLED.service [Service] WorkingDirectory=/home/pi/Desktop/ServerLED ExecStart=sudo java -cp .:/opt/pi4j/lib/'*' ServerLED Restart=always StandardOutput=syslog StandardError=syslog SyslogIdentifier=propanel User=root Group=root Environment=NODE_ENV=production [Install] WantedBy=multi-user.target sudo cp serverLED.service /etc/systemd/system/ sudo chmod u+rwx /etc/systemd/system/serverLED.service sudo systemctl enable server sudo reboot oppure sudo systemctl start serverLED sudo systemctl stop serverLED