Initial demo for Promo-Operation
This commit is contained in:
1 parent
55b7909717
commit
eb1c84cf05
25 files changed
+24615
-2
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# Autostart applications
|
||||
|
||||
```sh
|
||||
sudo nano /etc/systemd/system/SwordMain.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=/home/pi/SwordMain/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 SwordMain.service
|
||||
# start immediately
|
||||
sudo systemctl start SwordMain.service
|
||||
# check status
|
||||
sudo systemctl status SwordMain.service
|
||||
```
|
||||
|
||||
|
||||
promo $(pwd)/assets -b "mqtts://nerdyssey.de:8883" -t "outdoor/king-arthur/sword/" -p "awesomeexodusoutdooradventures" -u "exodususer"
|
||||
Reference in new issue
Block a user