Add systemd service unit and install target

This commit is contained in:
2026-11-27 10:21:46 +01:00
parent 7041e49c9d
commit f4fc0a10aa
3 changed files with 21 additions and 3 deletions
+3 -1
View File
@@ -59,5 +59,7 @@ distclean: clean
install:
mkdir -p /ambed
cp $(EXECUTABLE) /ambed/
cp ./run /ambed/
test -f /ambed/ambed.ini || cp ./ambed.ini /ambed/
cp ./ambed.service /etc/systemd/system/
systemctl daemon-reload
@echo "Installazione completata. Avvia con: sudo systemctl enable --now ambed.service"