# Autostart applications ```sh sudo nano /etc/systemd/system/Sword.service ``` ./ ```ini [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 ``` ```sh 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"