Fix update system and restart (#77)

* clean code

* fix update and restart button, service needs to run as root for the restart to work
This commit is contained in:
Masoko
2024-02-10 15:23:57 +02:00
committed by GitHub
parent 09c2fa4cb9
commit 9c4ba19cbe
4 changed files with 12 additions and 11 deletions

View File

@@ -9,8 +9,9 @@ WorkingDirectory=/home/username/git/rpi-mqtt-monitor/
StandardOutput=inherit
StandardError=inherit
Restart=always
RestartSec=1
RestartSec=5
User=YOUR_USER
[Install]
WantedBy=multi-user.target