Files
king-arth-iot-devices/doc/setupAutostart.md
T
2026-10-16 21:29:06 +02:00

762 B

Autostart applications

sudo nano /etc/systemd/system/Sword.service

./

[Unit]
Description=My Raspberry Pi Application
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=gustice
WorkingDirectory=/home/pi/SwordMain
ExecStart=bash start.sh
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
chmod +x /home/pi/SwordMain/start.sh
# Reload systemd
sudo systemctl daemon-reload
# Enable the service
sudo systemctl enable Sword.service
# start immediately
sudo systemctl start Sword.service
# check status
sudo systemctl status Sword.service

game $(pwd)/assets -b "mqtts://excaliburs-erben.de:8883" -t "outdoor/king-arthur/sword/" -p "awesomeexodusoutdooradventures" -u "exodususer"